<?xml version="1.0" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugzilla.globus.org/bugzilla/bugzilla.dtd">

<bugzilla version="3.2.3"
          urlbase="http://bugzilla.globus.org/bugzilla/"
          maintainer="bacon@mcs.anl.gov"
>

    <bug>
          <bug_id>5487</bug_id>
          
          <creation_ts>2007-08-20 14:53</creation_ts>
          <short_desc>C-ws core related problem - Deserialization of Header failed</short_desc>
          <delta_ts>2007-08-21 22:49:49</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>C WS Core</product>
          <component>C WSRF core</component>
          <version>4.0.5</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>5486</dup_id>
          
          
          
          <priority>P3</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>4.0.5</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Gaurav Khanna">khanna@mcs.anl.gov</reporter>
          <assigned_to name="Joe Bester">bester@mcs.anl.gov</assigned_to>
          <cc>bresnaha@mcs.anl.gov</cc>

      

      
          <long_desc isprivate="0">
            <who name="Gaurav Khanna">khanna@mcs.anl.gov</who>
            <bug_when>2007-08-20 14:53:11</bug_when>
            <thetext>Hi,

I have written a C client using globus C-ws core which is trying to
contact a web service. When I use an api call which is going to contact
the webservice and populate one of its output arguments with the result,
it gives the following error.

globus_soap_message_module: Failed receiving response
tpsAPISEI_tpsAPI_getPath.
globus_soap_message_module: Deserialization of
{http://schemas.xmlsoap.org/soap/envelope/}Header failed.

I set GLOBUS_SOAP_MESSAGE_DEBUG to MESSAGES, and I saw in the output the
following request and response.

default.class EF
----------------WRITING--------------
&lt;ns00:Envelope
xmlns:ns00=&quot;http://schemas.xmlsoap.org/soap/envelope/&quot;&gt;&lt;ns00:Header&gt;&lt;ns02:MessageID
xmlns:ns02=&quot;http://schemas.xmlsoap.org/ws/2004/03/addressing&quot;&gt;uuid:8b148afc-4cf9-11dc-963c-00096b607276&lt;/ns02:MessageID&gt;&lt;ns02:To
xmlns:ns02=&quot;http://schemas.xmlsoap.org/ws/2004/03/addressing&quot;&gt;http://192.84.86.25:8080/terapathsAPI/tpsAPI&lt;/ns02:To&gt;&lt;ns02:Action
xmlns:ns02=&quot;http://schemas.xmlsoap.org/ws/2004/03/addressing&quot;&gt;urn:tpsAPI/wsdl/tpsAPISEI/tpsAPI_getPathResponse&lt;/ns02:Action&gt;&lt;ns02:From
xmlns:ns02=&quot;http://schemas.xmlsoap.org/ws/2004/03/addressing&quot;&gt;&lt;ns02:Address&gt;http://schemas.xmlsoap.org/ws/2004/03/addressing/role/anonymous&lt;/ns02:Address&gt;&lt;/ns02:From&gt;&lt;/ns
00:Header&gt;&lt;ns00:Body&gt;&lt;ns01:tpsAPI_getPath
xmlns:ns01=&quot;urn:tpsAPI/types&quot;&gt;&lt;String_1&gt;terapaths&lt;/String_1&gt;&lt;String_2&gt;terapaths&lt;/String_2&gt;&lt;String_3&gt;198.124.220.135&lt;/String_3&gt;&lt;String_4&gt;192.84.86.19&lt;/String_4&gt;&lt;/ns01:tpsA
PI_getPath&gt;&lt;/ns00:Body&gt;&lt;/ns00:Envelope&gt;
=====================================

----------------READING--------------
&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
&lt;env:Envelope xmlns:env=&quot;http://schemas.xmlsoap.org/soap/envelope/&quot;
xmlns:xsd=&quot;http://www.w3.org/2001/XMLSchema&quot;
xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot;
xmlns:enc=&quot;http://schemas.xmlsoap.org/soap/encoding/&quot;
xmlns:ns0=&quot;urn:tpsAPI/types&quot;&gt;&lt;env:Body&gt;&lt;ns0:tpsAPI_getPathResponse&gt;&lt;result&gt;http://tera01.ultralight.org:8080/terapathsInternalWebServices/tpsIWS&lt;/result&gt;&lt;result&gt;OSCARS,ht
tps://oscars.es.net/axis2/services/OSCARS&lt;/result&gt;&lt;result&gt;http://198.124.220.9:8080/terapathsRemoteTPsListeners/tpsRTPsL&lt;/result&gt;&lt;/ns0:tpsAPI_getPathResponse&gt;&lt;/env:Body&gt;&lt;
/env:Envelope&gt;
=====================================


The output seems to be coming back to the client correctly but is not able
to be correctly parsed and copied into the output arguments. Basically,the
response doesn&apos;t contain any soap headers due to which the client side
C-ws-core implementation cannot parse it. The standard SOAP declaration specification has the following line.

 &lt;!-- Envelope, header and body --&gt;
      &lt;xs:element name=&quot;Envelope&quot; type=&quot;tns:Envelope&quot;/&gt;
      &amp;#8722;
          &lt;xs:complexType name=&quot;Envelope&quot;&gt;
      &amp;#8722;
          &lt;xs:sequence&gt;
      &lt;xs:element ref=&quot;tns:Header&quot; minOccurs=&quot;0&quot;/&gt;

which means that the message should be fine even without a header. Could you help me with this error?

Regards
Gaurav

Could you help me with this?</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who name="Joe Bester">bester@mcs.anl.gov</who>
            <bug_when>2007-08-21 22:49:49</bug_when>
            <thetext>

*** This bug has been marked as a duplicate of 5486 ***</thetext>
          </long_desc>
      
      

    </bug>

</bugzilla>