gsoap header generation => wsdl mismatch

LegacyForumLegacyForum Posts: 1,669 ✭✭
edited December 2016 in SOAtest

Below are 2 links to other people's issues. What they are experiencing is similar to what is going on for me.
Especially the one with: error with several namespaces in the same apache server

Re: error with several namespaces in the same apache server

Re: wsdl -> .h -> gsoap = namespace mismatch ?

Even though I have "ns" in the header file, I get "tns" in the .wsdl file which is causing problems.

In the header file, I have
//gsoap ns service name: condime
//gsoap ns service style: rpc
//gsoap ns service encoding: encoded
//gsoap ns service namespace: http://simba/condime.wsdl
//gsoap ns service location: http://simba:8600/DimeServer
//gsoap ns schema namespace: urn:condime


ALL of the functions in the file defined with: "ns__XXXX"

int ns__specialGetImageServer(
xsd__string original_host_name,
xsd__int original_port,
xsd__string target_name,
xsd__int target_type,
xsd__double original_file_id,
xsd__int *retval );

When I run the code generated, I get the following in the RECV.log:

HTTP/1.1 500 Internal Server Error
Server: gSOAP/2.7
Content-Type: text/xml; charset=utf-8
Transfer-Encoding: chunked
Connection: close

<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV=""; xmlns:SOAP-ENC=""; xmlns:xsi=""; xmlns:xsd=""; xmlns:ns="urn:condime"><SOAP-ENV:Body SOAP-ENV:encodingStyle=""><SOAP-ENV:Fault><faultcode>SOAP-ENV:Client</faultcode><faultstring>Method 'ns:specialGetImageServerResponse' not implemented: method name or namespace not recognized</faultstring></SOAP-ENV:Fault></SOAP-ENV:Body></SOAP-ENV:Envelope>

When I do a grep on the WSDL file generated, I see the following:

Again: the main thing is : ns:specialGetImageServerResponse' not implemented: method name or namespace not recognized

When I go through the .wsdl file, I see that specialGetImageServer

is defined WITH => "tns:specialGetImageServerResponse"

and NOT => "ns:specialGetImageServerResponse"


grep specialGetImageServer *.wsdl
<message name="specialGetImageServerRequest">
<message name="specialGetImageServerResponse">
<operation name="specialGetImageServer">
<documentation>Service definition of function ns__specialGetImageServer</documentation>
<input message="tns:specialGetImageServerRequest"/>
<output message="tns:specialGetImageServerResponse"/>
<operation name="specialGetImageServer">

QUESTION: WHY is there a MISMATCH between what is specified in the HEADER file and the generated .wsdl??



  • LegacyForumLegacyForum Posts: 1,669 ✭✭
    edited January 2011
    Hello NiteRider,

    Thank you for your question.

    This sounds like an issue that is very specific to your environment. The Parasoft forum is for self-support and is not an official Parasoft support channel.

    Please contact the official SOAtest support line at [email protected] or (888) 305-0041 for further assistance.

Sign In or Register to comment.