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 alanz <aj...@yahoo.com> on 2002/10/27 18:36:52 UTC
java:MSG vs. document binding style
In the user guide it seems indicates java:MSG mapping
to the document binding style defined in the WSDL.
I am looking at the sample MessgeService. In the WSDD
the style is java:MSG.
However after deployed to AXIS v1.0, the ?wsdl url
showed the binding style is rpc instead of document.
Also the WSDL tool always generates the WSDD with
provider="java:RPC" regardless the binding style in
WSDL
Is this a bug?
Thanks
__________________________________________________
Do you Yahoo!?
Y! Web Hosting - Let the expert host your web site
http://webhosting.yahoo.com/
RE: java:MSG vs. document binding style
Posted by alanz <aj...@yahoo.com>.
This is the WSDL for MessageService generated on my
Websphere Application developer Test env.
I don't know why are we getting different result.
Either way it seems to have problem. Can someone from
AXIS explain this a little?
By the way, can someone tell me what exactly is the
xsd:anyType telling me? Thanks,
<?xml version="1.0" encoding="UTF-8" ?>
- <wsdl:definitions
targetNamespace="http://localhost:8080/AOVWeb/services/MessageService"
xmlns="http://schemas.xmlsoap.org/wsdl/"
xmlns:apachesoap="http://xml.apache.org/xml-soap"
xmlns:impl="http://localhost:8080/AOVWeb/services/MessageService"
xmlns:intf="http://localhost:8080/AOVWeb/services/MessageService"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
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 />
- <wsdl:message name="echoElementsResponse">
<wsdl:part name="echoElementsReturn"
type="xsd:anyType" />
</wsdl:message>
<wsdl:message name="echoElementsRequest" />
- <wsdl:portType name="MessageService">
- <wsdl:operation name="echoElements">
<wsdl:input message="intf:echoElementsRequest"
name="echoElementsRequest" />
<wsdl:output message="intf:echoElementsResponse"
name="echoElementsResponse" />
</wsdl:operation>
</wsdl:portType>
- <wsdl:binding name="MessageServiceSoapBinding"
type="intf:MessageService">
<wsdlsoap:binding style="rpc"
transport="http://schemas.xmlsoap.org/soap/http" />
- <wsdl:operation name="echoElements">
<wsdlsoap:operation soapAction="" />
- <wsdl:input name="echoElementsRequest">
<wsdlsoap:body
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
namespace="http://localhost:8080/AOVWeb/services/MessageService"
use="encoded" />
</wsdl:input>
- <wsdl:output name="echoElementsResponse">
<wsdlsoap:body
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
namespace="http://localhost:8080/AOVWeb/services/MessageService"
use="encoded" />
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
- <wsdl:service name="MessageServiceService">
- <wsdl:port binding="intf:MessageServiceSoapBinding"
name="MessageService">
<wsdlsoap:address
location="http://localhost:8080/AOVWeb/services/MessageService"
/>
</wsdl:port>
</wsdl:service>
</wsdl:definitions>
--- Anand Hatwalne <an...@persistent.co.in>
wrote:
> Welcome to the confusion club!
>
> Also, notice that a document style WSDL will also
> have encoding
> specified..is that a bug too?
> I am posting a so-called document style WSDL
> generated (which .NET fails to
> parse; complaining about the encoding present in the
> WSDL)
>
> <?xml version="1.0" encoding="UTF-8" ?>
> - <wsdl:definitions
>
targetNamespace="http://localhost:8080/axis/services/MessageService"
> xmlns="http://schemas.xmlsoap.org/wsdl/"
> xmlns:apachesoap="http://xml.apache.org/xml-soap"
>
xmlns:impl="http://localhost:8080/axis/services/MessageService"
>
xmlns:intf="http://localhost:8080/axis/services/MessageService"
>
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
> 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
>
targetNamespace="http://localhost:8080/axis/services/MessageService"
> xmlns="http://www.w3.org/2001/XMLSchema">
> <import
>
namespace="http://schemas.xmlsoap.org/soap/encoding/"
> />
> - <complexType name="ArrayOf_apachesoap_Element">
> - <complexContent>
> - <restriction base="soapenc:Array">
> <attribute ref="soapenc:arrayType"
> wsdl:arrayType="apachesoap:Element[]"
> />
> </restriction>
> </complexContent>
> </complexType>
> <element name="ArrayOf_apachesoap_Element"
> nillable="true"
> type="impl:ArrayOf_apachesoap_Element" />
> </schema>
> </wsdl:types>
> - <wsdl:message name="echoElementsResponse">
> <wsdl:part
> element="impl:ArrayOf_apachesoap_Element"
> name="echoElementsReturn" />
> </wsdl:message>
> - <wsdl:message name="echoElementsRequest">
> <wsdl:part
> element="impl:ArrayOf_apachesoap_Element" name="in0"
> />
> </wsdl:message>
> - <wsdl:portType name="MessageService">
> - <wsdl:operation name="echoElements"
> parameterOrder="in0">
> <wsdl:input message="impl:echoElementsRequest"
> name="echoElementsRequest"
> />
> <wsdl:output message="impl:echoElementsResponse"
> name="echoElementsResponse" />
> </wsdl:operation>
> </wsdl:portType>
> - <wsdl:binding name="MessageServiceSoapBinding"
> type="impl:MessageService">
> <wsdlsoap:binding style="document"
> transport="http://schemas.xmlsoap.org/soap/http" />
> - <wsdl:operation name="echoElements">
> <wsdlsoap:operation soapAction="" />
> - <wsdl:input name="echoElementsRequest">
> <wsdlsoap:body
>
namespace="http://localhost:8080/axis/services/MessageService"
> use="literal"
> />
> </wsdl:input>
> - <wsdl:output name="echoElementsResponse">
> <wsdlsoap:body
>
namespace="http://localhost:8080/axis/services/MessageService"
> use="literal"
> />
> </wsdl:output>
> </wsdl:operation>
> </wsdl:binding>
> - <wsdl:service name="MessageServiceService">
> - <wsdl:port
> binding="impl:MessageServiceSoapBinding"
> name="MessageService">
> <wsdlsoap:address
>
location="http://localhost:8080/axis/services/MessageService"
> />
> </wsdl:port>
> </wsdl:service>
> </wsdl:definitions>
>
> -----Original Message-----
> From: alanz [mailto:ajz96@yahoo.com]
> Sent: Sunday, October 27, 2002 11:07 PM
> To: axis-user@xml.apache.org
> Subject: java:MSG vs. document binding style
>
>
> In the user guide it seems indicates java:MSG
> mapping
> to the document binding style defined in the WSDL.
> I am looking at the sample MessgeService. In the
> WSDD
> the style is java:MSG.
> However after deployed to AXIS v1.0, the ?wsdl url
> showed the binding style is rpc instead of document.
> Also the WSDL tool always generates the WSDD with
> provider="java:RPC" regardless the binding style in
> WSDL
> Is this a bug?
>
> Thanks
>
>
>
> __________________________________________________
> Do you Yahoo!?
> Y! Web Hosting - Let the expert host your web site
> http://webhosting.yahoo.com/
>
__________________________________________________
Do you Yahoo!?
Y! Web Hosting - Let the expert host your web site
http://webhosting.yahoo.com/
RE: java:MSG vs. document binding style
Posted by Anand Hatwalne <an...@persistent.co.in>.
Welcome to the confusion club!
Also, notice that a document style WSDL will also have encoding
specified..is that a bug too?
I am posting a so-called document style WSDL generated (which .NET fails to
parse; complaining about the encoding present in the WSDL)
<?xml version="1.0" encoding="UTF-8" ?>
- <wsdl:definitions
targetNamespace="http://localhost:8080/axis/services/MessageService"
xmlns="http://schemas.xmlsoap.org/wsdl/"
xmlns:apachesoap="http://xml.apache.org/xml-soap"
xmlns:impl="http://localhost:8080/axis/services/MessageService"
xmlns:intf="http://localhost:8080/axis/services/MessageService"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
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
targetNamespace="http://localhost:8080/axis/services/MessageService"
xmlns="http://www.w3.org/2001/XMLSchema">
<import namespace="http://schemas.xmlsoap.org/soap/encoding/" />
- <complexType name="ArrayOf_apachesoap_Element">
- <complexContent>
- <restriction base="soapenc:Array">
<attribute ref="soapenc:arrayType" wsdl:arrayType="apachesoap:Element[]"
/>
</restriction>
</complexContent>
</complexType>
<element name="ArrayOf_apachesoap_Element" nillable="true"
type="impl:ArrayOf_apachesoap_Element" />
</schema>
</wsdl:types>
- <wsdl:message name="echoElementsResponse">
<wsdl:part element="impl:ArrayOf_apachesoap_Element"
name="echoElementsReturn" />
</wsdl:message>
- <wsdl:message name="echoElementsRequest">
<wsdl:part element="impl:ArrayOf_apachesoap_Element" name="in0" />
</wsdl:message>
- <wsdl:portType name="MessageService">
- <wsdl:operation name="echoElements" parameterOrder="in0">
<wsdl:input message="impl:echoElementsRequest" name="echoElementsRequest"
/>
<wsdl:output message="impl:echoElementsResponse"
name="echoElementsResponse" />
</wsdl:operation>
</wsdl:portType>
- <wsdl:binding name="MessageServiceSoapBinding" type="impl:MessageService">
<wsdlsoap:binding style="document"
transport="http://schemas.xmlsoap.org/soap/http" />
- <wsdl:operation name="echoElements">
<wsdlsoap:operation soapAction="" />
- <wsdl:input name="echoElementsRequest">
<wsdlsoap:body
namespace="http://localhost:8080/axis/services/MessageService" use="literal"
/>
</wsdl:input>
- <wsdl:output name="echoElementsResponse">
<wsdlsoap:body
namespace="http://localhost:8080/axis/services/MessageService" use="literal"
/>
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
- <wsdl:service name="MessageServiceService">
- <wsdl:port binding="impl:MessageServiceSoapBinding" name="MessageService">
<wsdlsoap:address
location="http://localhost:8080/axis/services/MessageService" />
</wsdl:port>
</wsdl:service>
</wsdl:definitions>
-----Original Message-----
From: alanz [mailto:ajz96@yahoo.com]
Sent: Sunday, October 27, 2002 11:07 PM
To: axis-user@xml.apache.org
Subject: java:MSG vs. document binding style
In the user guide it seems indicates java:MSG mapping
to the document binding style defined in the WSDL.
I am looking at the sample MessgeService. In the WSDD
the style is java:MSG.
However after deployed to AXIS v1.0, the ?wsdl url
showed the binding style is rpc instead of document.
Also the WSDL tool always generates the WSDD with
provider="java:RPC" regardless the binding style in
WSDL
Is this a bug?
Thanks
__________________________________________________
Do you Yahoo!?
Y! Web Hosting - Let the expert host your web site
http://webhosting.yahoo.com/