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 ...
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
  • Piet Souris
  • Frits Walraven
  • Carey Brown

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

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

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(
at com.sun.xml.rpc.client.dii.BasicCall.invoke(

here is my wsdl file,


<?xml version="1.0" encoding="UTF-8" ?>
- <wsdl:definitions targetNamespace="http://DefaultNamespace"; xmlns:apachesoap=""; xmlns:impl="http://DefaultNamespace"; xmlns:intf="http://DefaultNamespace"; xmlns:wsdl=""; xmlns:wsdlsoap=""; xmlns:xsd="">;
- <!--
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="">;
<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">
- <wsdl:operation name="add" parameterOrder="a b">
<wsdl:input message="impl:addRequest" name="addRequest" />
<wsdl:output message="impl:addResponse" name="addResponse" />
- <wsdl:binding name="AddNumbersSoapBinding" type="impl:AddNumbers">
<wsdlsoap:binding style="document" transport=""; />
- <wsdl:operation name="add">
<wsdlsoap:operation soapAction="" />
- <wsdl:input name="addRequest">
<wsdlsoap:body use="literal" />
- <wsdl:output 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...


This parrot is no more. It has ceased to be. Now it's a tiny ad:
Thread Boost feature
    Bookmark Topic Watch Topic
  • New Topic