Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Web Services / October 2006

Tip: Looking for answers? Try searching our database.

XML Wrapper?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
JeffP@Work - 02 Oct 2006 16:06 GMT
I am very confused so please understand that this question may not be well
formed.

I need to work with a WS that requires a wrapper, nesting of the XML,
perhaps this is not a good phrase, but I'm not sure where to begin.

---------------------------------------------------
** Any articles or links, books are appreciated **
---------------------------------------------------

My only WS experience is using a WS similar to a DLL or .vb file in my web
project.

Now I have to connect to someone else's WS and I've been given alot of XML
structures.

I had assumed that when .Net connected to a WDSL any calls to the named WS
were sent as XML and that I didn't need to form XML, other than to make my
call with the proper sequence, type and value for any variables for the
webmethod.

In the past I think that my XML have been implemented similar to.....

The following pseudo code snipit I get, although I may not state it 100%
correctly here...
... from w/in my webapp
----------------------------------------------
.... assuming a Ref to the WS has been made...
Prvt Sub NewReq(CaseNo as String, Date as String, Other Values... as )

.... validation and getting of any other req. values to pass in...

If NewRequest.Send(CaseNo as String, Date as String, Other Values... as ) =
"Submitted" Then
... do something...
End If

End Sub

... which sends XML similar to....
----------------------------------------------
<NewRequest Send>
   <CaseNo/>
   <Date/>
   <Other Values..../>
</NewRequest Send>
------------------------------------------------

****** Here's the new stuff that is confusuing for me....

Now I have to pass similar that is like a wrapper with an outside auth
handled at my client and a request obejct that passes in the NewRequest.
------------------------------------------------
<OutSide XML>
   <Auth>
   <MyValidated UserID/>
   <Auth/>
   <Request>
        <Request Date>
        <Request Type>
   </Request>
   <Inside XML New Request>
       <CaseNo/>
       <Date/>
       <Other Values..../>
   </Inside XML New Request>
<OutSide XML>

And it gets better, I also have to receive back a <Response and process
that..... which I might think is handled w/in my "NewReq" noted above.

Any direction would be appreciated.....

JeffP.....
JeffP@Work - 03 Oct 2006 15:07 GMT
Jeff,

In contrast to calling a function or a dll you may wish to consider as if
you were about to write a document using DOM, but instead of writing a
phyical XML document you'll be passing the resulting XML as a string into
the an outer method.

So, you will be calling the method that you called <OutSide XML similar to
your familar call to a function or dll most likley as....

NewRequest(Auth as object, Request as object) as string

Where Request contains your DOM XML string returning some Response as string
of XML

<NewRequest XML>
<Auth/>
   <Request>
       <XML String/>
   </Request>
</NewRequest XML>

HTH

JeffP....

>I am very confused so please understand that this question may not be well
>formed.
[quoted text clipped - 70 lines]
>
> JeffP.....

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.