Thanks. Deployment file shown below - it's the one used in the
wss4j tutorial:
<deployment xmlns="http://xml.apache.org/axis/wsdd/"
xmlns:java="http://xml.apache.org/axis/wsdd/providers/java">
<handler name="log"
type="java:org.apache.axis.handlers.LogHandler"/>
<transport name="http"
pivot="java:org.apache.axis.transport.http.HTTPSender"/>
<globalConfiguration>
<requestFlow >
<handler type="java:org.apache.ws.axis.security.WSDoAllSender" >
<parameter name="action" value="UsernameToken"/>
<parameter name="user" value="wss4j"/>
<parameter name="passwordCallbackClass"
value="edu.ucsd.sopac.utils.auth.PWCallback"/>
<parameter name="passwordType" value="PasswordDigest"/>
</handler>
</requestFlow >
</globalConfiguration >
</deployment>
I've turned on axis logging via log4j. It appears that the
WSDoAllSender's invoke() method is entered with a null message. The
relevant log output is shown below. When I remove the
EngineConfiguration statements, and the soap envelope appears in
tcpmon, I see no difference in the pre-invoke log output.
One final note - in both cases, I get an axis configurationException
in the log output, saying the web service can't be found - even
though it executes successfully when the handler is not used.
Thanks again,
Paul
relevant log output:
1824 [main] DEBUG org.apache.axis.client.Call - <?xml version="1.0"
encoding="UTF-8"?><soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soapenv:Body><ns1:getPrice
soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:ns1="SparePartPrice"><in0
xsi:type="xsd:string">SKU-123</in0></ns1:getPrice></soapenv:Body></soapenv:Envelope>
1825 [main] DEBUG org.apache.axis.client.AxisClient - Enter:
AxisClient::invoke
1825 [main] DEBUG org.apache.axis.client.AxisClient -
EngineHandler: null
2324 [main] DEBUG org.apache.ws.security.WSSecurityEngine - The
provider BC had to be added to the java.security.Security
2375 [main] DEBUG org.apache.axis.SimpleChain - Enter:
SimpleChain::invoke
2376 [main] DEBUG org.apache.ws.axis.security.WSDoAllSender -
WSDoAllSender: enter invoke() with msg type: null
2384 [main] DEBUG org.apache.ws.axis.security.WSDoAllSender -
Action: 32
2385 [main] DEBUG org.apache.ws.axis.security.WSDoAllSender -
Actor: null, mu: true
2385 [main] DEBUG org.apache.axis.SOAPPart - Enter:
SOAPPart::getAsSOAPEnvelope()
2386 [main] DEBUG org.apache.axis.SOAPPart - current form is
FORM_SOAPENVELOPE
2386 [main] DEBUG org.apache.axis.encoding.SerializationContext -
register 'soapenv' - 'http://schemas.xmlsoap.org/soap/envelope/'
2386 [main] DEBUG org.apache.axis.encoding.SerializationContext -
register 'soapenv' - 'http://schemas.xmlsoap.org/soap/envelope/'
2386 [main] DEBUG org.apache.axis.encoding.SerializationContext -
register 'xsd' - 'http://www.w3.org/2001/XMLSchema'
2386 [main] DEBUG org.apache.axis.encoding.SerializationContext -
register 'xsi' - 'http://www.w3.org/2001/XMLSchema-instance'
2387 [main] DEBUG org.apache.axis.encoding.SerializationContext -
Start element [http://schemas.xmlsoap.org/soap/envelope/]:Envelope
2387 [main] DEBUG org.apache.axis.encoding.SerializationContext -
Start element [http://schemas.xmlsoap.org/soap/envelope/]:Body
2388 [main] DEBUG org.apache.axis.encoding.SerializationContext -
Start element [SparePartPrice]:getPrice
2388 [main] DEBUG org.apache.axis.encoding.SerializationContext -
register 'ns1' - 'SparePartPrice'
2389 [main] DEBUG org.apache.axis.encoding.SerializationContext -
Start element []:in0
2390 [main] DEBUG org.apache.axis.encoding.SerializationContext -
End element in0
2390 [main] DEBUG org.apache.axis.encoding.SerializationContext -
End element ns1:getPrice
2390 [main] DEBUG org.apache.axis.encoding.SerializationContext -
End element soapenv:Body
2390 [main] DEBUG org.apache.axis.encoding.SerializationContext -
End element soapenv:Envelope
2405 [main] DEBUG org.apache.ws.axis.security.WSDoAllSender -
Performing Action: 32
2443 [main] DEBUG org.apache.axis.SOAPPart - Setting current
message form to: FORM_BYTES (currentMessage is now [B)
2444 [main] DEBUG org.apache.ws.axis.security.WSDoAllSender - Send
request:
2444 [main] DEBUG org.apache.ws.axis.security.WSDoAllSender - <?xml
version="1.0" encoding="UTF-8"?>
2444 [main] DEBUG org.apache.ws.axis.security.WSDoAllSender -
WSDoAllSender: exit invoke()
2444 [main] DEBUG org.apache.axis.SimpleChain - Exit:
SimpleChain::invoke
2462 [main] DEBUG org.apache.axis.SimpleChain - Enter:
SimpleChain::invoke
2463 [main] DEBUG org.apache.axis.transport.http.HTTPSender -
Enter: HTTPSender::invoke
2466 [main] DEBUG org.apache.axis.SOAPPart - Enter:
SOAPPart::saveChanges
2466 [main] DEBUG org.apache.axis.SOAPPart - Enter:
SOAPPart::saveChanges
2468 [main] DEBUG org.apache.axis.SOAPPart - Enter:
SOAPPart::saveChanges
2517 [main] DEBUG
org.apache.axis.components.net.DefaultSocketFactory - Created an
insecure HTTP connection
2518 [main] DEBUG org.apache.axis.transport.http.HTTPSender - XML
sent:
2519 [main] DEBUG org.apache.axis.transport.http.HTTPSender -
---------------------------------------------------
2520 [main] DEBUG org.apache.axis.SOAPPart - Enter:
SOAPPart::saveChanges
2521 [main] DEBUG org.apache.axis.transport.http.HTTPSender - POST
/axis/services/SparePartPrice HTTP/1.0
Content-Type: text/xml; charset=utf-8
Accept: application/soap+xml, application/dime, multipart/related,
text/*
User-Agent: Axis/1.2.1
Host: geoapp01.ucsd.edu:8081
Cache-Control: no-cache
Pragma: no-cache
SOAPAction: ""
Content-Length: 39
<?xml version="1.0" encoding="UTF-8"?>
2526 [main] DEBUG org.apache.axis.transport.http.HTTPSender -
HTTP/1.1 500 Internal Server Error
2527 [main] DEBUG org.apache.axis.transport.http.HTTPSender -
Server Apache-Coyote/1.1
2527 [main] DEBUG org.apache.axis.transport.http.HTTPSender -
Content-Type text/xml;charset=utf-8
2527 [main] DEBUG org.apache.axis.transport.http.HTTPSender - Date
Tue, 18 Oct 2005 17:03:57 GMT
2528 [main] DEBUG org.apache.axis.transport.http.HTTPSender -
Connection close
2530 [main] DEBUG org.apache.axis.SOAPPart - Enter: SOAPPart
ctor(FORM_INPUTSTREAM)
2531 [main] DEBUG org.apache.axis.SOAPPart - Setting current
message form to: FORM_INPUTSTREAM (currentMessage is now
org.apache.axis.transport.http.SocketInputStream)
2531 [main] DEBUG org.apache.axis.SOAPPart - Exit: SOAPPart ctor()
2531 [main] DEBUG org.apache.axis.transport.http.HTTPSender -
no Content-Length
2533 [main] DEBUG org.apache.axis.transport.http.HTTPSender -
XML received:
2534 [main] DEBUG org.apache.axis.transport.http.HTTPSender -
-----------------------------------------------
2537 [main] DEBUG org.apache.axis.SOAPPart - Enter:
SOAPPart::getAsSOAPEnvelope()
2538 [main] DEBUG org.apache.axis.SOAPPart - current form is
FORM_INPUTSTREAM
logged axis configurationException (occurs with successful web
service):
1795 [main] DEBUG org.apache.axis.ConfigurationException -
Exception:
org.apache.axis.ConfigurationException: No service named
SparePartPrice is available
org.apache.axis.ConfigurationException: No service named
SparePartPrice is available
at
org.apache.axis.configuration.FileProvider.getService(FileProvider.java:233)
at
org.apache.axis.AxisEngine.getService(AxisEngine.java:311)
at
org.apache.axis.MessageContext.setTargetService(MessageContext.java:755)
at org.apache.axis.client.Call.invoke(Call.java:2671)
at org.apache.axis.client.Call.invoke(Call.java:2424)
at org.apache.axis.client.Call.invoke(Call.java:2347)
at org.apache.axis.client.Call.invoke(Call.java:1804)
at
wroxaxis.chapter2.stubs.SparePartPriceSoapBindingStub.getPrice(SparePartPriceSoapBindingStub.java:103)
at
wroxaxis.chapter2.stubs.SparePartPriceStubClient.main(SparePartPriceStubClient.java:26)
at
org.apache.axis.configuration.FileProvider.getService(FileProvider.java:233)
at
org.apache.axis.AxisEngine.getService(AxisEngine.java:311)
at
org.apache.axis.MessageContext.setTargetService(MessageContext.java:755)
at org.apache.axis.client.Call.invoke(Call.java:2671)
at org.apache.axis.client.Call.invoke(Call.java:2424)
at org.apache.axis.client.Call.invoke(Call.java:2347)
at org.apache.axis.client.Call.invoke(Call.java:1804)
at
wroxaxis.chapter2.stubs.SparePartPriceSoapBindingStub.getPrice(SparePartPriceSoapBindingStub.java:103)
On Tue, 18 Oct 2005, Dittmann, Werner wrote:
Paul,
can you send the deployment file or deployment info so
that we can have a look?
Regards,
Werner
-----Ursprüngliche Nachricht-----
Von: Paul Jamason [mailto:[EMAIL PROTECTED]
Gesendet: Dienstag, 18. Oktober 2005 05:26
An: [email protected]
Betreff: soap envelope still missing
Hi,
I'm still getting a missing soap envelope in tcpmon when I attempt
to use the WSDoAllSender handler. No error message is reported on
the client side. I've tried just "Timestamp" as my lone action in
the client_deploy.wsdd file to rule out any PWCallback class
problems; same result.
I'm assuming the problem occurs in WSDoAllSender when the SOAP
envelope in the request message is converted into a document.
Therefore, I attempted to turn on axis and wss4j logging via a
log4j.properties file to see where the problem occurs, but I'm not
getting any output to the console or a log file. I've used log4j
successfully previously with hibernate and my own client/server
code, but I must be doing something wrong here.
Again, the soap envelope appears until I configure the engine using
client_deploy.wsdd, or configure it programatically. Any help is
appreciated - I've been unable to find this problem reported
anywhere.
Thanks,
Paul
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]