OK, I found a way to make .Net to understand the response.
If I put all type definitions under one schema everything works.
Does anybody have a clue what's wrong with multiple schema definitions?
Thanks,
Eugene
_____________________________________________
From: Eugene Shershnev [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 12, 2005 11:49a
To: 'axis-user@ws.apache.org'
Subject: Problem calling Axis WS from .Net
Hi All,
We're having problem between .Net client (C#) and Axis service.
Axis version is 1.2
The WSDL defined 2 operations: login and logout.
Login returns LoginResult object that contains 3 strings - that simple.
The WSDL is attached.
<< File: MyWSDL.wsdl >>
In the server-config.wsdd the service is defined like this:
<service name="MyService" provider="java:RPC" style="wrapped" use="literal">
<wsdlFile>MyWSDL.wsdl</wsdlFile>
<parameter name="allowedMethods" value="*"/>
<parameter name="className" value="mydomain.myservice.MyWebService"/>
<parameter name="sendXsiTypes" value="false"/>
<parameter name="sendMultiRefs" value="false"/>
<beanMapping
languageSpecificType="java:mydomain.myservice.LoginResult"
qname="ns1:LoginResult"
xmlns:ns1="urn:type.myservice.mydomain"/>
<beanMapping
languageSpecificType="java:mydomain.myservice.UnexpectedErrorFault"
qname="ns2:UnexpectedErrorFault"
xmlns:ns2="urn:fault.myservice.mydomain"/>
<namespace>urn:myservice.mydomain</namespace>
</service>
And the response looks like this:
<?xml version="1.0" encoding="utf-8"?>
<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>
<loginResponse xmlns="urn:myservice.mydomain">
<loginReturn>
<hostSiteID>MySite1</hostSiteID>
<sessionID>EXPIRES:20050513111757-0400 UID:domain\uid</sessionID>
<sessionTimeout>600</sessionTimeout>
</loginReturn>
</loginResponse>
</soaenv:Body>
</soapenv:Envelope>
Now here is the problem - when .Net client calls login() it get LoginResult object back, but all its elements are null.
Any help and pointers will be highly appreciated!
--
Eugene