Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

I am trying to create a web service that calls another web service and relays the results out to the user. So here is the flow:

 

User request to service1

service1 calls service2

service2 returns results to service1

service1 returns results to user

 

It's not an ideal situation but it is needed for firewall issues. Anyway, my issue is that I can't get the return types straightened out. Ultimately I would like the user to see the xmlDocument that service2 creates.

 

I built service 2 to return XmlDocument, which is does.

But when I add a web reference in service1 to service2 the return type for that method magically becomes XmlNode and not XmlDocument.

 

Now when that XmlNode gets back to service1 I don't know how to coddle it to return a nice XmlDocument to the user.

 

I have tried to alter the return type in the web reference proxy to XmlDocument with no luck.

 

I have tried to create a new XmlDocument in service1 and somehow tack the XmlNode into it with no luck.

 

I get a lot of malformed XML errors.

 

Any suggestions?

Wanna-Be C# Superstar

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...