0

-Dcom.sun.metro.soap.dump=true を使用して SOAP 要求と応答をダンプしています。

私の Glassfish コンソールでは、ログインによって 6 つのログ エントリが生成されていることがわかります。

3 つの要求メッセージが Tube で受信され、3 つの要求メッセージが Tube で処理されます。これらの各 SOAP「メッセージ」には、異なるインスタンス ID があります... :

これらのメッセージは、重複または正常と見なすことができますか?

INFO: Request message processed in Tube [ com.sun.xml.ws.api.pipe.helper.PipeAdapter ]   Instance [ 813 ] Engine [ com.sun.xml.ws.server.WSEndpointImpl@37100007 ] Thread [ http-thread-pool-1234(1) ]:
<?xml version='1.0' encoding='UTF-8'?>
<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
<S:Body>
<ns16:loginRequest xmlns:dm="http://dm.app" xmlns:doc="http://doc.app"    xmlns:rights="http://rights.app" xmlns:alert="http://alert.app" xmlns:program="http://program.app" xmlns:med="http://med.app" xmlns:mon="http://mon.app" xmlns:device="http://device.app" xmlns:mail="http://mail.app" xmlns:report="http://report.app" xmlns:event="http://event.app" xmlns:wscommon="http://wscommon.app" xmlns:cc="http://cc.app" xmlns:form="http://form.app" xmlns:db="http://db.app" xmlns:ns16="http://patient.app">
<ns16:user>ye006</ns16:user>
<ns16:password>ye006</ns16:password>
<ns16:language>en</ns16:language>
<ns16:mode>standard</ns16:mode>
</ns16:loginRequest>
</S:Body>
</S:Envelope>

INFO: Request message received in Tube [ com.sun.xml.ws.api.pipe.helper.PipeAdapter ]    Instance [ 812 ] Engine [ com.sun.xml.ws.server.WSEndpointImpl@37100007 ] Thread [ http-thread-pool-1234(1) ]:
<?xml version='1.0' encoding='UTF-8'?>
<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
<S:Body>
<ns16:loginRequest xmlns:dm="http://dm.app" xmlns:doc="http://doc.app"  xmlns:rights="http://rights.app" xmlns:alert="http://alert.app" xmlns:program="http://program.app" xmlns:med="http://med.app" xmlns:mon="http://mon.app" xmlns:device="http://device.app" xmlns:mail="http://mail.app" xmlns:report="http://report.app" xmlns:event="http://event.app" xmlns:wscommon="http://wscommon.app" xmlns:cc="http://cc.app" xmlns:form="http://form.app" xmlns:db="http://db.app" xmlns:ns16="http://patient.app">
<ns16:user>ye006</ns16:user>
<ns16:password>ye006</ns16:password>
<ns16:language>en</ns16:language>
<ns16:mode>standard</ns16:mode>
</ns16:loginRequest>
</S:Body>
</S:Envelope>

INFO: Request message processed in Tube [ com.sun.xml.ws.api.pipe.helper.PipeAdapter ] Instance [ 811 ] Engine [ com.sun.xml.ws.server.WSEndpointImpl@37100007 ] Thread [ http-thread-pool-1234(1) ]:
<?xml version='1.0' encoding='UTF-8'?>
<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
<S:Body>
<ns16:loginRequest xmlns:dm="http://dm.app" xmlns:doc="http://doc.app" xmlns:rights="http://rights.app" xmlns:alert="http://alert.app" xmlns:program="http://program.app" xmlns:med="http://med.app" xmlns:mon="http://mon.app" xmlns:device="http://device.app" xmlns:mail="http://mail.app" xmlns:report="http://report.app" xmlns:event="http://event.app" xmlns:wscommon="http://wscommon.app" xmlns:cc="http://cc.app" xmlns:form="http://form.app" xmlns:db="http://db.app" xmlns:ns16="http://patient.app">
<ns16:user>ye006</ns16:user>
<ns16:password>ye006</ns16:password>
<ns16:language>en</ns16:language>
<ns16:mode>standard</ns16:mode>
</ns16:loginRequest>
</S:Body>
</S:Envelope>

INFO: Request message received in Tube [ com.sun.xml.ws.protocol.soap.ServerMUTube ] Instance [ 810 ] Engine [ com.sun.xml.ws.server.WSEndpointImpl@37100007 ] Thread [ http-thread-pool-1234(1) ]:
<?xml version='1.0' encoding='UTF-8'?>
<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
<S:Body>
<ns16:loginRequest xmlns:dm="http://dm.app" xmlns:doc="http://doc.app" xmlns:rights="http://rights.app" xmlns:alert="http://alert.app" xmlns:program="http://program.app" xmlns:med="http://med.app" xmlns:mon="http://mon.app" xmlns:device="http://device.app" xmlns:mail="http://mail.app" xmlns:report="http://report.app" xmlns:event="http://event.app" xmlns:wscommon="http://wscommon.app" xmlns:cc="http://cc.app" xmlns:form="http://form.app" xmlns:db="http://db.app" xmlns:ns16="http://patient.app">
<ns16:user>ye006</ns16:user>
<ns16:password>ye006</ns16:password>
<ns16:language>en</ns16:language>
<ns16:mode>standard</ns16:mode>
</ns16:loginRequest>
</S:Body>
</S:Envelope>

INFO: Request message processed in Tube [ com.sun.xml.ws.protocol.soap.ServerMUTube ] Instance [ 809 ] Engine [ com.sun.xml.ws.server.WSEndpointImpl@37100007 ] Thread [ http-thread-pool-1234(1) ]:
<?xml version='1.0' encoding='UTF-8'?>
<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
<S:Body>
<ns16:loginRequest xmlns:dm="http://dm.app" xmlns:doc="http://doc.app" xmlns:rights="http://rights.app" xmlns:alert="http://alert.app" xmlns:program="http://program.app" xmlns:med="http://med.app" xmlns:mon="http://mon.app" xmlns:device="http://device.app" xmlns:mail="http://mail.app" xmlns:report="http://report.app" xmlns:event="http://event.app" xmlns:wscommon="http://wscommon.app" xmlns:cc="http://cc.app" xmlns:form="http://form.app" xmlns:db="http://db.app" xmlns:ns16="http://patient.app">
<ns16:user>ye006</ns16:user>
<ns16:password>ye006</ns16:password>
<ns16:language>en</ns16:language>
<ns16:mode>standard</ns16:mode>
</ns16:loginRequest>
</S:Body>
</S:Envelope>

INFO: Request message received in Tube [ com.sun.xml.ws.server.sei.SEIInvokerTube ] Instance [ 808 ] Engine [ com.sun.xml.ws.server.WSEndpointImpl@37100007 ] Thread [ http-thread-pool-1234(1) ]:
<?xml version='1.0' encoding='UTF-8'?>
<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
<S:Body>
<ns16:loginRequest xmlns:dm="http://dm.app" xmlns:doc="http://doc.app" xmlns:rights="http://rights.app" xmlns:alert="http://alert.app" xmlns:program="http://program.app" xmlns:med="http://med.app" xmlns:mon="http://mon.app" xmlns:device="http://device.app" xmlns:mail="http://mail.app" xmlns:report="http://report.app" xmlns:event="http://event.app" xmlns:wscommon="http://wscommon.app" xmlns:cc="http://cc.app" xmlns:form="http://form.app" xmlns:db="http://db.app" xmlns:ns16="http://patient.app">
<ns16:user>ye006</ns16:user>
<ns16:password>ye006</ns16:password>
<ns16:language>en</ns16:language>
<ns16:mode>standard</ns16:mode>
</ns16:loginRequest>
</S:Body>
</S:Envelope>
4

1 に答える 1

0

OK、答えが見つかりました。実際には、異なるパイプを通過したのは同じ要求/応答のペアであるため、要求/応答は実際には 3 回出力されます。

出力コンソールを要求/応答ペアの 1 つのコピーだけに絞り込むには、システムで定義されているパイプを参照してください: com.sun.xml.ws.protocol.soap.ServerMUTube、com.sun.xml.ws.api .pipe.helper.PipeAdapter および com.sun.xml.ws.server.sei.SEIInvokerTube...

ここに参照があります: http://metro.java.net/guide/ch02.html#dumping-soap-messages-on-server

于 2013-01-30T19:22:46.303 に答える