You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Eugene Shershnev <sh...@gmail.com> on 2005/05/12 17:48:41 UTC

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.

 
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