This discussion is archived
2 Replies Latest reply: Aug 11, 2010 2:58 AM by 784647 RSS

why the tuxedo-service can't receive mesage through GWWS of SALT

784647 Newbie
Currently Being Moderated
My app using SALT can't receive information from GWWS .
the client is soapUI 3.0.1,it sends webservice request message to tuxedo using SALT,the tracelog seems GWWS has receive request successful,but my tuxedo-serivce receive nothing;but my app send webserivce response to soapUI client successful,the soapUI client receives response info ok too.
the tracelog is :
153834.tydic36!GWWS.160526.1034.0: TRACE:ms:SCO[4095] FSM State Transition: WAKEUP>Created
153834.tydic36!GWWS.160526.1034.0: TRACE:ms:SCO[4095] FSM State Transition: Inbound>Receive
153834.tydic36!GWWS.160526.1034.0: TRACE:ms:SCO[4095] FSM State Transition: WAKEUP>Receive
153834.tydic36!GWWS.160526.1034.0: TRACE:ms:SCO[4095] FSM State Transition: Found>ParseHTTP
153834.tydic36!GWWS.160526.1034.0: TRACE:ms:HTTP Parsing: Buffer length 500 -- POST /simpapp HTTP/1.1
Accept-Encoding: gzip,deflate
Content-Type: text/xml;charset=UTF-8
SOAPAction: "ToUpperWS"
User-Agent: Jakarta Commons-HttpClient/3.1
Host: 192.168.161.36:8088
Content-Length: 288

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:pack.simpapp_typedef.salt11">
<soapenv:Header/>
<soapenv:Body>
<urn:ToUpperWS>
+<urn:inbuf>HELLO</urn:inbuf>(here the gwws reveive message ok )+ </urn:ToUpperWS>
<
153834.tydic36!GWWS.160526.1034.0: TRACE:ms:/soapenv:Body>
</soapenv:Envelope>
153834.tydic36!GWWS.160526.1034.0: TRACE:ms:parse_header_field() return 6
153834.tydic36!GWWS.160526.1034.0: TRACE:ms:SCO[4095] FSM State Transition: OK>HTTPDispatch
153834.tydic36!GWWS.160526.1034.0: TRACE:ms:A HTTP message is received, SCO index=4095
153834.tydic36!GWWS.160526.1034.0: TRACE:ms:Finding endpoint, soap->path is /simpapp, request_uri is /simpapp
153834.tydic36!GWWS.160526.1034.0: TRACE:ms:SCO[4095] FSM State Transition: Post>ParseSOAPHeader
153834.tydic36!GWWS.160526.1034.0: TRACE:ms:SCO[4095] FSM State Transition: Default>ParseHeaderRoot
153834.tydic36!GWWS.160526.1034.0: TRACE:ms:A SOAP message is received, SCO index=4095
153834.tydic36!GWWS.160526.1034.0: TRACE:ms:SCO[4095] FSM State Transition: None>ParseSOAPBody
153834.tydic36!GWWS.160526.1034.0: TRACE:ms:SCO[4095] FSM State Transition: Default>ParseBodyRoot
153834.tydic36!GWWS.160526.1034.0: TRACE:ms:SCO[4095] FSM State Transition: OK>ParseBodyElement
153834.tydic36!GWWS.160526.1034.0: TRACE:ms:Begin data transformation of request message, buffer type = STRING, SCO index=4095
153834.tydic36!GWWS.160526.1034.0: TRACE:ms:SCO[4095] FSM State Transition: OK>WSSEPolicyCheck1
153834.tydic36!GWWS.160526.1034.0: TRACE:ms:SCO[4095] FSM State Transition: OK>WSRMHandle1
153834.tydic36!GWWS.160526.1034.0: TRACE:ms:SCO[4095] FSM State Transition: OK>FindService
153834.tydic36!GWWS.160526.1034.0: TRACE:ms:SCO[4095] FSM State Transition: OK>XML2Tux
153834.tydic36!GWWS.160526.1034.0: TRACE:ms:SCO[4095] FSM State Transition: OK>CallTuxService
153834.tydic36!GWWS.160526.1034.0: TRACE:ms:SCO[4095] FSM State Transition: Default>SendInput
153834.tydic36!GWWS.160526.1.0: TRACE:ms:Delivering a message to Tuxedo, service name =TOUPPER, SCO index=4095
+153834.tydic36!testmgr.221608.1.0: rqst->data[][0]+(here the tux-service recevies nothing)
the app:
TOUPPER(rqst)
TPSVCINFO *rqst;
#endif
{
int i;
     userlog("rqst->data[%s][%d]",rqst->data,rqst->len);
for( i=0; i<rqst->len-1; i++ )
{
rqst->data[i] = toupper(rqst->data);
}
char SndBuf = tpalloc("STRING", NULL, 16);  /申请发送的缓存*/
if (SndBuf == NULL)
{
          userlog("err");      
          tpreturn( TPSUCCESS, 0, rqst->data, 0L, 0 );
}

     SndBuf[0] = 'H';
     SndBuf[1] = 'O';
     SndBuf[2] = 0;
/* Return the transformed buffer to the requestor. */
tpreturn( TPSUCCESS, 0, SndBuf, 0L, 0 );
}

Edited by: user13389469 on 2010-8-11 上午12:58

Edited by: user13389469 on 2010-8-11 上午12:58
  • 1. Re: why the tuxedo-service can't receive mesage through GWWS of SALT
    784647 Newbie
    Currently Being Moderated
    the soap client send message:
    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:pack.simpapp_typedef.salt11">
    <soapenv:Header/>
    <soapenv:Body>
    <urn:ToUpperWS>
    <urn:inbuf>HELLO</urn:inbuf>
    </urn:ToUpperWS>
    </soapenv:Body>
    </soapenv:Envelope>
    and receive message is ok:
    <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:tuxedo="urn:pack.simpapp_typedef.salt11">
    <SOAP-ENV:Body>
    <tuxedo:ToUpperWSResponse>
    <tuxedo:outbuf>HO</tuxedo:outbuf>
    </tuxedo:ToUpperWSResponse>
    </SOAP-ENV:Body>
    </SOAP-ENV:Envelope>

    my question is that,why my app receive nothing by "userlog("rqst->data[%s][%d]",rqst->data,rqst->len);"; but send back ok "<tuxedo:outbuf>HO</tuxedo:outbuf>"?

    the metadata is that:
    service=ToUpperWS
    servicetype=service
    inbuf=STRING
    outbuf=STRING
    tuxservice=TOUPPER
    param=name
    type=string
    access=inout
    size=100

    Edited by: user13389469 on 2010-8-11 上午1:14
  • 2. Re: why the tuxedo-service can't receive mesage through GWWS of SALT
    784647 Newbie
    Currently Being Moderated
    I have resolve it ,I build the testmgr using tuxedo8.1,and the envirement is tuxedo11,so the error comes.

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points