473,379 Members | 1,187 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,379 software developers and data experts.

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">
<soap:Body>
<soap:Fault>
<soap:Code>
<soap:Value>Server</soap:Value>
</soap:Code>
<soap:Reason>
<!--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
1.2]</soap:Text>
</soap:Reason>
</soap:Fault>
</soap:Body>
</soap:Envelope>
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.

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

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

<definitions targetNamespace="http://www.mycompany.com/rpc/wsdl"
xmlns="http://schemas.xmlsoap.org/wsdl/"
xmlns:tns="http://www.mycompany.com/rpc/wsdl"
xmlns:msg="http://www.mycompany.com/rpc/messages"
xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/">

<types>
<xsd:schema targetNamespace="http://www.mycompany.com/rpc/wsdl"
xmlns:tns="http://www.mycompany.com/rpc/wsdl"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:msg="http://www.mycompany.com/rpc/messages">

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

<xsd:import
namespace="http://www.mycompany.com/rpc/messages"
schemaLocation="RPC_Messages.xsd"/>
</xsd:schema>
</types>

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

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

<portType name="RPCPort">

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

</portType>

<binding name="RPCBinding" type="tns:RPCPort">
<soap:binding style="rpc"
transport="http://schemas.xmlsoap.org/soap/http"/>

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

</binding>

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

<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xmime="http://www.w3.org/2005/05/xmlmime"
xmlns:tns="http://www.mycompany.com/rpc/messages"
targetNamespace="http://www.mycompany.com/rpc/messages">
<xsd:import namespace="http://www.w3.org/2001/XMLSchema"/>
<xsd:element name="RPCReq">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="Session" type="xsd:long"/>
<xsd:element name="TransactionID" type="xsd:long"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="RPCResp">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="OperationStatus" type="xsd:long"/>
<xsd:element name="TransactionID" type="xsd:long"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>

</xsd:schema>

Oct 9 '08 #1
0 3104

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Leonid | last post by:
Thanks a lot for your time! Here is WSDL: <?xml version="1.0" encoding="utf-8"?>
0
by: Cleo | last post by:
Hi, I am trying to call a WebService Method written in Weblogic from VB.NET and I am getting the following error. I am using SOAP Caal s from VB.NET. Please find the wsdl file and my code. ...
4
by: Jit Prasad | last post by:
I have been consuming a IBM Websphere (Java) web service using .Net 1.0 front end writen in VB.NET. The proxy class submits a soap request and gets a soap response. When I migrated the front-end...
0
by: jennifer.perkins | last post by:
I've seen a couple posts by people having similar problems, but the suggested solutions I've tried so far haven't worked. I'm using a SOAP client in VB.Net (constructed by wsdl.exe) and the...
0
by: Jigar.Patel | last post by:
I have simple remoting server exposing following simple method. When I try to add webreference to this server in another project, it gives me following error: Custom tool error: Unable to import...
1
by: Florian Grousset | last post by:
Hi, I'm trying to code a simple C# SOAP client wich query an Axis2 Java SOAP Server. Server side code has been generated from a WSDL file. SOAP requests and responses must both contain a simple...
2
by: furrypop | last post by:
Hi, I'm trying to get the Perl SOAP::Lite examples to work on a Windows PC, running Apache 2.2.4. Apache is definitely serving CGI scripts, as I've tested a dummy Hello World thing. I'm also...
0
by: Philluminati | last post by:
I have a Perl SOAP Server which returns this SOAP Message when invoked: <?xml version="1.0" encoding="UTF-8"?><soap:Envelope xmlns:xsi="http:// www.w3.org/2001/XMLSchema-instance"...
4
by: gcharbon | last post by:
Hi community, I have a problem with a Soap client written in php. I have a local server (coded in c and a client in c too, it works fine), but i want to test client in php, and i have an error...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.