Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here


gsoap mismatch between header and .wsdl files

gsoap mismatch between header and .wsdl files

gsoap mismatch between header and .wsdl files


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="http://schemas.xmlsoap.org/soap/envelope/" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:ns="urn:condime"><SOAP-ENV:Body SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><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 generted, 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">

Has anyone ever encountered such a problem with gsoap?


RE: gsoap mismatch between header and .wsdl files

>//gsoap ns service namespace: http://simba/condime.wsdl
This should be the namespace of the service.

[1] From the response message:-

[1.1] in the root element, there is this definition:


[1.2] in the faultstring, it shows this:

><faultstring>Method 'ns:specialGetImageServerResponse' not implemented: method name or namespace not recognized</faultstring>

[1.3] Therefore, it is clear that the action called for is sent with the wrong namespace qualification (urn:condim) instead of http://simba/condime.wsdl. You should try to look into it in this direction. The contingent namespace prefix (ns vs tns) is of no importance. The header file of gsoap will probably use ns which will also show up in the .nsmap file.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close