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 Pär Malmqvist <pa...@hotmail.com> on 2010/01/08 15:16:36 UTC
Consume Axis2 service with .NET c# question
Hello!
When I use the following wsdl file to generate a SOAP client with .NET the client thinks it is a service of
the style 'bare' and not 'wrapped'.
I think the service is defined in wrapped style.
Can anyone please tell me if I am wrong?
Regards
Pär Malmqvist
<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions targetNamespace="http://main.sol"
xmlns:apachesoap="http://xml.apache.org/xml-soap"
xmlns:tns="http://main.sol"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<wsdl:types>
<schema elementFormDefault="qualified" targetNamespace="http://main.sol"
xmlns="http://www.w3.org/2001/XMLSchema"
xmlns:apachesoap="http://xml.apache.org/xml-soap"
xmlns:tns="http://main.sol" xmlns:intf="http://main.sol"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
<element name="echo">
<complexType>
<sequence>
<element name="valueString" type="xsd:string"/>
</sequence>
</complexType>
</element>
<element name="echoResponse">
<complexType>
<sequence>
<element name="return" type="xsd:string"/>
</sequence>
</complexType>
</element>
</schema>
</wsdl:types>
<wsdl:message name="echo">
<wsdl:part element="tns:echo" name="parameter"/>
</wsdl:message>
<wsdl:message name="echoResponse">
<wsdl:part element="tns:echoResponse" name="return"/>
</wsdl:message>
<wsdl:portType name="Echo">
<wsdl:operation name="echo">
<wsdl:input message="tns:echo" name="echoRequest"/>
<wsdl:output message="tns:echoResponse" name="echoResponse"/>
</wsdl:operation>
</wsdl:portType>
<wsdl:binding name="EchoSoapBinding" type="tns:Echo">
<wsdlsoap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
<wsdl:operation name="echo">
<wsdlsoap:operation soapAction=""/>
<wsdl:input name="echoRequest">
<wsdlsoap:body use="literal"/>
</wsdl:input>
<wsdl:output name="echoResponse">
<wsdlsoap:body use="literal"/>
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
<wsdl:service name="Echo">
<wsdl:port binding="tns:EchoSoapBinding" name="Echo">
<wsdlsoap:address location="http://localhost:8080/axis2/services/SolDB2"/>
</wsdl:port>
</wsdl:service>
</wsdl:definitions>
_________________________________________________________________
Windows Live: Make it easier for your friends to see what you’re up to on Facebook.
http://www.microsoft.com/middleeast/windows/windowslive/see-it-in-action/social-network-basics.aspx?ocid=PID23461::T:WLMTAGL:ON:WL:en-xm:SI_SB_2:092009