jQuery in Action, 3rd edition
The moose likes Web Services and the fly likes Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark ""rpc" not supported even though actually calling document style webservice." Watch ""rpc" not supported even though actually calling document style webservice." New topic

"rpc" not supported even though actually calling document style webservice.

Sandesh Jadhav

Joined: Nov 01, 2008
Posts: 14

I created a simple 'document/literal' style webservice in Eclipse for addition of two numbers. And now m trying to create a simple java client which would call webservice. When I try to run the client it says "rpc" not supported even though m calling the document style web service. I know RPC/encoded style is not WS-I complient.

Here is an exception
Exception in thread "main" operation style: "rpc" not supported
at com.sun.xml.rpc.client.dii.BasicCall.unsupportedOperationStyleException(BasicCall.java:583)
at com.sun.xml.rpc.client.dii.BasicCall.invoke(BasicCall.java:515)

here is my wsdl file,


<?xml version="1.0" encoding="UTF-8" ?>
- <wsdl:definitions targetNamespace="http://DefaultNamespace" xmlns:apachesoap="http://xml.apache.org/xml-soap" xmlns:impl="http://DefaultNamespace" xmlns:intf="http://DefaultNamespace" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
- <!--
WSDL created by Apache Axis version: 1.2.1
Built on Jun 14, 2005 (09:15:57 EDT)

- <wsdl:types>
- <schema elementFormDefault="qualified" targetNamespace="http://DefaultNamespace" xmlns="http://www.w3.org/2001/XMLSchema">
<element name="a" type="xsd:int" />
<element name="b" type="xsd:int" />
<element name="addReturn" type="xsd:int" />
- <wsdl:message name="addRequest">
<wsdl:part element="impl:a" name="a" />
<wsdl:part element="impl:b" name="b" />
- <wsdl:message name="addResponse">
<wsdl:part element="impl:addReturn" name="addReturn" />
- <wsdl:portType name="AddNumbers">
- <wsdlperation name="add" parameterOrder="a b">
<wsdl:input message="impl:addRequest" name="addRequest" />
<wsdlutput message="impl:addResponse" name="addResponse" />
- <wsdl:binding name="AddNumbersSoapBinding" type="impl:AddNumbers">
<wsdlsoap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http" />
- <wsdlperation name="add">
<wsdlsoapperation soapAction="" />
- <wsdl:input name="addRequest">
<wsdlsoap:body use="literal" />
- <wsdlutput name="addResponse">
<wsdlsoap:body use="literal" />
- <wsdl:service name="AddNumbersService">
- <wsdl:port binding="impl:AddNumbersSoapBinding" name="AddNumbers">
<wsdlsoap:address location="http://node112:7081/WebServicesTest/services/AddNumbers" />

Am I missing something here?

Appreciate your help...


I agree. Here's the link: http://aspose.com/file-tools
subject: "rpc" not supported even though actually calling document style webservice.
It's not a secret anymore!