Re: .Net client connecting to Axis 1.2.RC2 Web Service

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Dino Chiesa [Microsoft] (dinoch_at_online.microsoft.com)
Date: 03/14/05


Date: Mon, 14 Mar 2005 09:55:14 -0500

Yes, it's probably a namespace problem. The namespaces (or elements) used in
the XML response document do not match the namespaces (or elements) used in
the .NET proxy. I says "probably namespace" because it is less likely that
an element name is out-of-synch.

Can I see the code generated for the C# webservice proxy?

How did you generate the .NET proxy? wsdl.exe? Add Web Reference? What
did you specify - a static WSDL file or a dynamic file generated by AXIS (eg
http://blah/axis/ServiceName?wsdl)

ps: why not AXIX1.2 RC3?

-Dino

"James Phillips via .NET 247" <anonymous@dotnet247.com> wrote in message
news:u3cG4v0IFHA.1392@TK2MSFTNGP10.phx.gbl...
Hi everyone,

This is quite an urgent request... I've been having some problems with my C#
client not properly processing a SOAP message from an Apache Axis 1.2RC2 web
service running on Tomcat 5.0.

The SOAP messages (Request AND Response) are fine and executing the request
through my web browser yields the correct results. But for some reason, on a
response, .Net instantiates the necessary object, but does not fill in the
data that is carried in the SOAP response - effectively all numeric values
are 0 and all strings are null. Does anone have any ideas?

SOAP Request
------------
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Body>
<test_Person
xmlns="http://localhost:8080/axis/services/MarketManagerWebService">
<Username>guest</Username>
</test_Person>
</soap:Body>
</soap:Envelope>

SOAP Response
-------------
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Body>
<test_PersonResponse
xmlns="http://localhost:8080/axis/services/MarketManagerWebService">
<test_PersonReturn>
<address>
<state>N/A</state>
<postCode>SW1 5XZ</postCode>
<country>UK</country>
<city>London</city>
<street>51 New Street</street>
</address>
<age>26</age>
<surname>Doe</surname>
<firstName>John</firstName>
</test_PersonReturn>
</test_PersonResponse>
</soapenv:Body>
</soapenv:Envelope>

The related WSDL is quite large so I'll send it to whoever needs it when
they reply (or I can include the .Net proxy - whichever is easier)

Any help would be gratefully accepted.
--------------------------------
From: James Phillips

-----------------------
Posted by a user from .NET 247 (http://www.dotnet247.com/)

<Id>UcVC10dQoEyWf2bH+EzSYw==</Id>



Relevant Pages

  • web services intermediaries
    ... For the applications i worked on, it's only client / server - request / ... response, one - one communication. ... But when i read SOAP specification, ... -- Does Aixs support intermediaries and what is intermediaries used for? ...
    (microsoft.public.dotnet.distributed_apps)
  • web services intermediaries
    ... For the applications i worked on, it's only client / server - request / ... response, one - one communication. ... But when i read SOAP specification, ... -- Does Aixs support intermediaries and what is intermediaries used for? ...
    (comp.text.xml)
  • Fun with SOAP.
    ... Amazon using SOAP. ... The document listing request ... single document returns a multi-part response. ... the script just defines a client and then does the call. ...
    (php.general)
  • Re: [PHP] nuSoap client SOAP Call problem
    ... Then serialize the envelope so it looks like a SOAP request. ... The action variable is that the URL of the WSDL? ... I guess you didn't provide a namespace in the serializeEnvelope method. ...
    (php.general)
  • Re: CPAN pause turnaround time
    ... > I've submitted a request at PAUSE for registering a namespace for ... > average turnaround time for a response. ... for namespace registrations frequently get dropped. ... By and large I stopped worrying about registering modules. ...
    (comp.lang.perl.modules)