Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > Other .NET > .NET Web Services
|
.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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 18th, 2006, 12:23 PM
Authorized User
 
Join Date: Oct 2006
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?

 
Old October 19th, 2006, 05:37 AM
Authorized User
 
Join Date: Oct 2006
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?

 
Old October 23rd, 2006, 11:37 AM
Authorized User
 
Join Date: Oct 2006
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.

 
Old February 20th, 2007, 04:41 PM
Registered User
 
Join Date: Feb 2007
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?

 
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/





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





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.