Menu

#1207 Error 28 fault detected [no subcode]

v1.0 (example)
closed
None
5
2018-06-05
2018-05-29
No

Hi there,

I am using gsoap 2.8.66 and getting error explained below

Error 28 fault detected [no subcode]
"Protocol not available"
Detail: setsockopt TCP_NODELAY failed in soap_bind()

Can you please help me regarding this.

Thanks in advance

Discussion

  • Robert van Engelen

    You could explicitly compile stdsoap2.c[pp] with -UTCP_NODELAY to remove this option (compile your project together with stdsoap2.c[pp] instead of libgsoap). This undefs the TCP_NODEALY macro. This should normally not be necessary. Curious what IP protocol you are using in place of TCP.

     
  • Robert van Engelen

    • status: open --> closed
    • assigned_to: Robert van Engelen
     
  • Sandeep Rathi

    Sandeep Rathi - 2018-05-30

    Sorry i didn't get it what exactly you want to say. Let me explain how i generated the files
    **wsdl2h file-name.wsdl
    soapcpp2 file-name.h **

    This generated files for client and server.

     
  • Robert van Engelen

    OK, but this information is not very useful. Assuming the problem occurs on the server side (because failed in soap_bind()), the build steps are not relevant but the runtime server-side setup is. Perhaps you're binding to a port that is reserved for other purposes.

     
  • Sandeep Rathi

    Sandeep Rathi - 2018-05-30

    I guess i need to compile the generated cpp files and link with run-time gsoap engine -lgsoap++ (i skip this step earlier) so i am trying to run command shown below but getting error "gsoap version mismatch in genereated code versus library code ". Although i generated these files using WSDL and when i open "soapClientLib.cpp" it's showing me current version 2.8.66 (same as i installed)

    g++ soapC.cpp soapClient.cpp soapClientLib.cpp soapServer.cpp soapServerLib.cpp -lgsoap++

     

    Last edit: Sandeep Rathi 2018-05-30
  • Sandeep Rathi

    Sandeep Rathi - 2018-06-05

    Do you think , failed in soapbind() error due to missing of namespace , as i didn't add namespace (which is ns1=MDM_Server in my case ) in "typemap.dat". Moreover , do we need to re-compile everything once we add namespace.

     

Log in to post a comment.

MongoDB Logo MongoDB