Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

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

 
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

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,

AddNumbers.wsdl



<?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" />
</schema>
</wsdl:types>
- <wsdl:message name="addRequest">
<wsdl:part element="impl:a" name="a" />
<wsdl:part element="impl:b" name="b" />
</wsdl:message>
- <wsdl:message name="addResponse">
<wsdl:part element="impl:addReturn" name="addReturn" />
</wsdl:message>
- <wsdl:portType name="AddNumbers">
- <wsdl:operation name="add" parameterOrder="a b">
<wsdl:input message="impl:addRequest" name="addRequest" />
<wsdl:output message="impl:addResponse" name="addResponse" />
</wsdl:operation>
</wsdl:portType>
- <wsdl:binding name="AddNumbersSoapBinding" type="impl:AddNumbers">
<wsdlsoap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"; />
- <wsdl:operation name="add">
<wsdlsoap:operation soapAction="" />
- <wsdl:input name="addRequest">
<wsdlsoap:body use="literal" />
</wsdl:input>
- <wsdl:output name="addResponse">
<wsdlsoap:body use="literal" />
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
- <wsdl:service name="AddNumbersService">
- <wsdl:port binding="impl:AddNumbersSoapBinding" name="AddNumbers">
<wsdlsoap:address location="http://node112:7081/WebServicesTest/services/AddNumbers"; />
</wsdl:port>
</wsdl:service>
</wsdl:definitions>




Am I missing something here?

Appreciate your help...

Sandesh



 
This parrot is no more. It has ceased to be. Now it's a tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic