gsoap header generation -> wsdl mismatch

Discussion in 'Mac Programming' started by d0mufasa, Jan 3, 2011.

  1. d0mufasa macrumors newbie

    Jan 3, 2011

    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 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">

    Why is there a MISMATCH between what is specified in the HEADER file and the generated .wsdl? Has anyone encountered such a problem?

    Any help, hints or advice would be greatly appreciated :)

  2. jiminaus macrumors 65816


    Dec 16, 2010
    Hi d0mufasa,

    As this isn't a question about programming on or for the Mac per se, you may get a response more readily if you post your question at a web services forum.

    I don't know how much web services experience the people who read this forum happen to have in addition to their Mac programming experience for them to able to or be willing to answer your question.


Share This Page