-----Urspr�ngliche Nachricht-----
Von: Ashok Shah [mailto:[EMAIL PROTECTED]
Gesendet: Dienstag, 24. Mai 2005 15:58
An: Emanuel Haisiuc; [email protected]
Betreff: Re: Setting the username token dynamically at runtime
It looks like the WSDoAllReciever got the SOAP request and tried to
process the security header, but the request didnt have any security
header.
Make sure you deploy client side so that the WSDoAllSender is
called to
add the security header. Also you didnt specify the action property.
Cheers,
--as
On Tue, 24 May 2005 15:56:05 +0300, Emanuel Haisiuc
<[EMAIL PROTECTED]> wrote:
Hello!
I'm a newbie with WSS4J. I'm going through the first
tutorial, and I'm
trying to set the username token at runtime.
I've generated the stubs with WSDL2Java. Attached are the 2
classes I've
made, beside the generated classes and interfaces. I'm
trying to connect
to the StockQuoteService web service. Running the example
with external
config file works fine. But running the client using the dynamical
setting of the username return the following message:
Exception in thread "main" AxisFault
faultCode:
{http://schemas.xmlsoap.org/soap/envelope/}Server.generalException
faultSubcode:
faultString: WSDoAllReceiver: Request does not contain required
Security header
faultActor:
faultNode:
faultDetail:
{http://xml.apache.org/axis/}hostname:manu.rogrid.pub.ro
WSDoAllReceiver: Request does not contain required Security header
at
org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFault
Builder.java:221)
at
org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultB
uilder.java:128)
at
org.apache.axis.encoding.DeserializationContext.endElement(Des
erializationContext.java:1087)
at
org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
at
org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown
Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$Fragment
ContentDispatcher.dispatch(Unknown
Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocu
ment(Unknown
Source)
at
org.apache.xerces.parsers.XML11Configuration.parse(Unknown
Source)
at
org.apache.xerces.parsers.XML11Configuration.parse(Unknown
Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at
org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown
Source)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:375)
at
org.apache.axis.encoding.DeserializationContext.parse(Deserial
izationContext.java:227)
at
org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696)
at org.apache.axis.Message.getSOAPEnvelope(Message.java:424)
at
org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(Mus
tUnderstandChecker.java:62)
at
org.apache.axis.client.AxisClient.invoke(AxisClient.java:206)
at org.apache.axis.client.Call.invokeEngine(Call.java:2765)
at org.apache.axis.client.Call.invoke(Call.java:2748)
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
samples.stock.client.StockWss01SoapBindingStub.getQuote(StockW
ss01SoapBindingStub.java:106)
at
samples.stock.client.StockServiceClient.main(StockServiceClien
t.java:61)
Can anyone help me?
Thank you a lot!
Best regards,
Emanuel Haisiuc
--
Using Opera's revolutionary e-mail client: http://www.opera.com/m2/