Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > .NET > Other .NET > .NET Web Services
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
.NET Web Services Discussions about .NET XML Web Service technologies including ASMX files, WSDL and SOAP.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the .NET Web Services section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old October 18th, 2006, 12:23 PM
Authorized User
 
Join Date: Oct 2006
Location: , , .
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Default Calling Axis web service from .NET client

Hi,
We have an Axis web service developed in Java that expects XML document(SOAP) as input and returns XML document as output. The service definition is like:
import org.w3c.axis.Element
import org.w3c.axis.Document
...
public Element[] getStatus (Element[])
....
We need to invoke this service from my .NET client. We have generated the .NET stub from the WSDL of the project. However, I am not able to call the web service from the stub. I am passing a
System.XML.XMLDocument class objects's OuterXML as input to the .NET stub, but the return is a null object. Even the service is getting invoked, but the request is not getting properly serialized.
Can anyone please help?

Reply With Quote
  #2 (permalink)  
Old October 19th, 2006, 05:37 AM
Authorized User
 
Join Date: Oct 2006
Location: , , .
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Default

To Add on, While testing the web service, it is observed that when Java client is consuming the web service, the XML is received by the service in proper format. However, when .NET client is consuming the web service, the XML format is getting changes. i.e < is getting changed to &lt; and > is getting changed to &gt;
Can anyone throw some light?

Reply With Quote
  #3 (permalink)  
Old October 23rd, 2006, 11:37 AM
Authorized User
 
Join Date: Oct 2006
Location: , , .
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Default

My Web Service is written in Java, hoisted on Axis 1.1 platform. The Web service takes Element(of org.apache.w3c.Element) as input arguments and returns Element as output. It takes XML as input and returns XML as output. The XML exchange is supported on SOAP protocol. I am trying to access my webservice from .NET client. I have converted the WSDL file to generate the client stub. In the client code, I have defined an object of XmlDocument type and loaded an XML from XmlDocument.Load method and passed the XmlDocument.OuterXml as input. However, when I am monitoring the input on my webservice, I am receiving the SOAP envelop in XML(i.e with opening and closing angular bracket <>), but the XML content, read from the file is getting distorted. The < is getting converted to &lt; and > converted to &gt;. Please help.

Reply With Quote
  #4 (permalink)  
Old February 20th, 2007, 04:41 PM
Registered User
 
Join Date: Feb 2007
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

hi koushik, i am facing the same problem. have u found a solution for the problem? If so can you please share the solution with us?

Reply With Quote
  #5 (permalink)  
Old April 2nd, 2010, 09:16 PM
Registered User
 
Join Date: Apr 2010
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Solutions consuming AXIS with .NET

I have been through the nasty integration process consuming AXIS 1.3 with .NET. I'm keeping a growing log of my solutions here.

http://nbaked.wordpress.com/2010/04/...ices-with-net/
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
java axis web service deb_net J2EE 2 June 12th, 2007 12:40 AM
Calling Axis Web Service from VB.NET - XML distort Koushik VB.NET 0 October 28th, 2006 07:32 AM
Consuming Axis Web Service from .NET - Problem Koushik .NET Web Services 0 October 28th, 2006 07:29 AM
Calling Axis web service from .Net - XML Exchange Koushik .NET Web Services 0 October 23rd, 2006 11:40 AM
Apache, Axis and JDK for web service problem solomon_13000 Apache Tomcat 0 August 26th, 2005 08:16 AM



All times are GMT -4. The time now is 09:43 PM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.