Hello,

I try to build a Client with Axis-1.2 for the WebService 
https://www.vdg-portal.de/VDGAuthPortal/services/STS.

The client only calls the RequestSecurityToken Method.

First, I generate the client with the following command:

wsdl2java -uri https://www.vdg-portal.de/VDGAuthPortal/services/STS?wsdl -p 
de.awd.biproclient.prototype -o stubs/vdg/ticketService -u

Now, I have the generated Stubs classes and everything else I need.

My Sourcecode:
ConfigurationContext ctx = 
ConfigurationContextFactory.createConfigurationContextFromFileSystem("repository",
 "repository/conf/axis2.xml");        
VDGSecurTokenServiceStub stub = new VDGSecurTokenServiceStub(ctx, 
"https://www.vdg-portal.de/VDGAuthPortal/services/STS";);
RequestSecurityToken request = new RequestSecurityToken();
RequestSecurityTokenType type = new RequestSecurityTokenType();
request.setRequestSecurityToken(type);
               
RequestSecurityTokenResponse response = stub.RequestSecurityToken(request);


The Axis repository contains a modules folder with addressing and rampart 
module inside.

The axis2.xml contains the rampart configuration for outflowsecurity:
<parameter name="OutflowSecurity">
        <action>
                <items>UsernameToken</items>
                <user>SomeUsername</user>
                
<passwordCallbackClass>de.awd.biproclient.prototype.VDGPasswordCallback</passwordCallbackClass>
                <passwordType>PasswordText</passwordType>               
        </action>
    </parameter>


That is all I need, I guess.

But I get an Exception (end of this email) and I don't know what does this 
mean, or what I do wrong.

Has someone an idea?

Thanks a lot!

Exception in thread "main" org.apache.axis2.AxisFault: Error in extracting 
message properties
        at 
org.apache.rampart.handler.RampartSender.invoke(RampartSender.java:63)
        at org.apache.axis2.engine.Phase.invoke(Phase.java:383)
        at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:203)
        at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:433)
        at 
org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:330)
        at 
org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:294)
        at 
de.awd.biproclient.prototype.VDGSecurTokenServiceStub.RequestSecurityToken(VDGSecurTokenServiceStub.java:157)
        at 
de.awd.biproclient.prototype.Prototypeclient.useCodeGenImplementation(Prototypeclient.java:74)
        at 
de.awd.biproclient.prototype.Prototypeclient.main(Prototypeclient.java:144)
Caused by: org.apache.rampart.RampartException: Error in extracting message 
properties
        at 
org.apache.rampart.RampartMessageData.<init>(RampartMessageData.java:314)
        at org.apache.rampart.MessageBuilder.build(MessageBuilder.java:57)
        at 
org.apache.rampart.handler.RampartSender.invoke(RampartSender.java:57)
        ... 8 more
Caused by: org.apache.ws.security.WSSecurityException: Error in converting SOAP 
Envelope to Document; nested exception is: 
        org.apache.axiom.om.OMException: javax.xml.stream.XMLStreamException
        at 
org.apache.rampart.util.Axis2Util.getDocumentFromSOAPEnvelope(Axis2Util.java:129)
        at 
org.apache.rampart.RampartMessageData.<init>(RampartMessageData.java:148)
        ... 10 more
Caused by: org.apache.axiom.om.OMException: javax.xml.stream.XMLStreamException
        at 
org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java:211)
        at org.apache.axiom.om.impl.dom.NodeImpl.build(NodeImpl.java:444)
        at 
org.apache.axiom.om.impl.dom.DocumentImpl.build(DocumentImpl.java:472)
        at 
org.apache.rampart.util.Axis2Util.getDocumentFromSOAPEnvelope(Axis2Util.java:113)
        ... 11 more
Caused by: javax.xml.stream.XMLStreamException
        at 
org.apache.axiom.om.impl.llom.OMStAXWrapper.updateLastNode(OMStAXWrapper.java:955)
        at 
org.apache.axiom.om.impl.llom.OMStAXWrapper.next(OMStAXWrapper.java:900)
        at 
org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java:125)

_______________________________________________________________________
Jetzt neu! Schützen Sie Ihren PC mit McAfee und WEB.DE. 3 Monate
kostenlos testen. http://www.pc-sicherheit.web.de/startseite/?mc=022220


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to