470,818 Members | 1,613 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,818 developers. It's quick & easy.

SOAP RPC operation problems (longish with code)

I work on creating test cases for a SOAP-based set of servers, using
soapUI. I received and updated set of WSDL and schema files, and when I
made new tests and mock server operations, all of the ones that had
been working now returned a SOAP fault. The faults look something like:
<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope">
<!--1 or more repetitions:-->
<soap:Text xml:lang="en">Missing operation for soapAction
[http://www.mycompany.com/rpc/] and body element
[{http://www.mycompany.com/rpc/wsdl}RPC] with SOAP Version [SOAP
I also tried to process it with gSOAP wsdl2h and got:

Reading file 'rpc.wsdl'
Reading schema file 'RPC_Messages.xsd'
Warning: no SOAP RPC operation namespace, operations will be ignored
The big difference between the new and the old is that all the
operations are RPC now, instead of document style.

The two error reports above reference a small, generic version I made
that contains just one simplified operation, that I think is small
enough to post. Any thoughts would be greatly appreciated.

========================= RPC.wsdl ===========================

<?xml version="1.0" encoding="UTF-8"?>

<definitions targetNamespace="http://www.mycompany.com/rpc/wsdl"

<xsd:schema targetNamespace="http://www.mycompany.com/rpc/wsdl"

<xsd:import namespace="http://www.w3.org/2001/XMLSchema"/>


<message name="msgRPCReq">
<part name="parameters" element="msg:RPCReq"/>

<message name="msgRPCResp">
<part name="parameters" element="msg:RPCResp"/>

<portType name="RPCPort">

<operation name="RPC">
<xsd:documentation>Client Request</xsd:documentation>
<input message="tns:msgRPCReq"/>
<output message="tns:msgRPCResp"/>


<binding name="RPCBinding" type="tns:RPCPort">
<soap:binding style="rpc"

<operation name="RPC">
<soap:operation soapAction="http://www.mycompany.com/rpc/"/>
<soap:body parts="parameters" use="literal"/>
<soap:body parts="parameters" use="literal"/>


<service name="RPCService">
<port name="RPCPort" binding="tns:RPCBinding">
<soap:address location="http:/localhost:8080/rpc"/>
===================== RPC_Messages.wsdl ========================

<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
<xsd:import namespace="http://www.w3.org/2001/XMLSchema"/>
<xsd:element name="RPCReq">
<xsd:element name="Session" type="xsd:long"/>
<xsd:element name="TransactionID" type="xsd:long"/>
<xsd:element name="RPCResp">
<xsd:element name="OperationStatus" type="xsd:long"/>
<xsd:element name="TransactionID" type="xsd:long"/>


Oct 9 '08 #1
0 2934

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Leonid | last post: by
reply views Thread by Cleo | last post: by
4 posts views Thread by Jit Prasad | last post: by
reply views Thread by jennifer.perkins | last post: by
reply views Thread by Jigar.Patel | last post: by
1 post views Thread by Florian Grousset | last post: by
2 posts views Thread by furrypop | last post: by
reply views Thread by mihailmihai484 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.