Re: .Net client connecting to Axis 1.2.RC2 Web Service
From: Dino Chiesa [Microsoft] (dinoch_at_online.microsoft.com)
Date: 03/14/05
- Next message: Luca: "Re: web service proxy authentication"
- Previous message: Dino Chiesa [Microsoft]: "Re: .NET Client / Java Web Service Problem"
- In reply to: James Phillips via .NET 247: ".Net client connecting to Axis 1.2.RC2 Web Service"
- Messages sorted by: [ date ] [ thread ]
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>
- Next message: Luca: "Re: web service proxy authentication"
- Previous message: Dino Chiesa [Microsoft]: "Re: .NET Client / Java Web Service Problem"
- In reply to: James Phillips via .NET 247: ".Net client connecting to Axis 1.2.RC2 Web Service"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|