axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Megadeth <calisto.s...@gmail.com>
Subject Re: JAX-WS client and service with Rampart module for signing messages
Date Fri, 29 Jun 2012 21:04:38 GMT

Hi Amila,
Thanks for response. I reordered things about mars as you suggested and it
works ok. 
Yesterday I decided to try new path of investigation.
I installed Rational Software Architect 8.0.4 and WebSphere 7.0. Then I
fixed WebSphere and my actual version is now 7.0.0.23 (the last one).
Then project described in previous mail was imported, and some minor
configuration was done (classpath, module dependencies... due to diferrences
beetwen RSA versions).
I deployed project as aar and decided to try it with and without security. 
Policy was configured the same as before. It means, on client side it was
put in policy.xml and loaded when client was started. On the server side it
was put inside service.xml.

In the text below: 
	-	by "SECURITY ENABLED" I mean uncommented rampart and rahas tags inside
axis2 xmls on client and server side.
	-	by "SECURITY DISABLED" I mean commented rampart and rahas tags inside
axis2 xmls on client and server side.

So this are my experiment results:
------------------------------------------------------------------------------------------------------

1.	Experiment: From axis2 console services list I clicked on my service link
(the only one). 
With two methods from my web service there was also bunch of other methods
which I don't understand where they are coming from. Anyway, WSDL was not
shown and the SystemOut.log has the same exceptions with SECURITY ENABLED
and SECURITY DISABLED. 

[29.06.12. 18:09:09:766 CEST] 00000017 AsyncTranspor E WSWS7216E: The
following error occured during a JNDI lookup operation for the
jms/DefaultAsyncReplyQueue connection factory :
javax.naming.NameNotFoundException: Context:
MONSTER2Node04Cell/nodes/MONSTER2Node04/servers/server1, name:
jms/DefaultAsyncReplyCF: First component in name jms/DefaultAsyncReplyCF not
found. [Root exception is org.omg.CosNaming.NamingContextPackage.NotFound:
IDL:omg.org/CosNaming/NamingContext/NotFound:1.0] 
at
com.ibm.ws.naming.jndicos.CNContextImpl.mapNotFoundException(CNContextImpl.java:4378) 
at com.ibm.ws.naming.jndicos.CNContextImpl.doLookup(CNContextImpl.java:1807) 
at com.ibm.ws.naming.jndicos.CNContextImpl.doLookup(CNContextImpl.java:1762) 
at
com.ibm.ws.naming.jndicos.CNContextImpl.lookupExt(CNContextImpl.java:1513) 
at com.ibm.ws.naming.jndicos.CNContextImpl.lookup(CNContextImpl.java:645) 
at com.ibm.ws.naming.util.WsnInitCtx.lookup(WsnInitCtx.java:166) 
at com.ibm.ws.naming.util.WsnInitCtx.lookup(WsnInitCtx.java:180) 
at javax.naming.InitialContext.lookup(InitialContext.java:436) 
at
com.ibm.ws.websvcs.transport.jms.JMSConnectionFactory.connect(JMSConnectionFactory.java:151)

at
com.ibm.ws.websvcs.transport.jms.AsyncTransportListener.getEPRForService(AsyncTransportListener.java:245)

at
com.ibm.ws.websvcs.transport.jms.AsyncTransportListener.getEPRsForService(AsyncTransportListener.java:180)

at
org.apache.axis2.description.AxisService.calculateEPRs(AxisService.java:1011) 
at org.apache.axis2.description.AxisService.printWSDL(AxisService.java:1358) 
at
org.apache.axis2.transport.http.ListingAgent.processListService(ListingAgent.java:286) 
at org.apache.axis2.transport.http.AxisServlet.doGet(AxisServlet.java:246) 
at javax.servlet.http.HttpServlet.service(HttpServlet.java:718) 
at javax.servlet.http.HttpServlet.service(HttpServlet.java:831) 
at
com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1657) 
at
com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:939) 
at
com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:502) 
at
com.ibm.ws.webcontainer.servlet.ServletWrapperImpl.handleRequest(ServletWrapperImpl.java:181)

at
com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServletWrapper.java:91)

at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:864) 
at
com.ibm.ws.webcontainer.WSWebContainer.handleRequest(WSWebContainer.java:1592) 
at
com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:186) 
at
com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:452)

at
com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewRequest(HttpInboundLink.java:511)

at
com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.processRequest(HttpInboundLink.java:305)

at
com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink.java:276) 
at
com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.sendToDiscriminators(NewConnectionInitialReadCallback.java:214)

at
com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.complete(NewConnectionInitialReadCallback.java:113)

at
com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:165)

at
com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217) 
at
com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161) 
at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:138) 
at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:204) 
at
com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:775) 
at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:905) 
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1613) 
Caused by: org.omg.CosNaming.NamingContextPackage.NotFound:
IDL:omg.org/CosNaming/NamingContext/NotFound:1.0 
at
com.ibm.ws.naming.ipcos.WsnOptimizedNamingImpl.handleNameNotFound(WsnOptimizedNamingImpl.java:2519)

at
com.ibm.ws.naming.ipcos.WsnOptimizedNamingImpl.getNextWsnOptimizedNamingContext(WsnOptimizedNamingImpl.java:1270)

at
com.ibm.ws.naming.cosbase.WsnOptimizedNamingImplBase$3.run(WsnOptimizedNamingImplBase.java:4738)

at
com.ibm.ws.naming.cosbase.WsnOptimizedNamingImplBase$3.run(WsnOptimizedNamingImplBase.java:4733)

at com.ibm.ws.naming.util.CommonHelpers.retry(CommonHelpers.java:771) 
at
com.ibm.ws.naming.cosbase.WsnOptimizedNamingImplBase.getTargetContext(WsnOptimizedNamingImplBase.java:4732)

at
com.ibm.ws.naming.cosbase.WsnOptimizedNamingImplBase$LeafOperationData.<init>(WsnOptimizedNamingImplBase.java:5311)

at
com.ibm.ws.naming.cosbase.WsnOptimizedNamingImplBase.resolve_complete_info(WsnOptimizedNamingImplBase.java:2155)

at
com.ibm.WsnOptimizedNaming._NamingContextStub.resolve_complete_info(_NamingContextStub.java:538)

at com.ibm.ws.naming.jndicos.CNContextImpl$2.run(CNContextImpl.java:2810) 
at com.ibm.ws.naming.jndicos.CNContextImpl$2.run(CNContextImpl.java:2806) 
at com.ibm.ws.naming.util.CommonHelpers.retry(CommonHelpers.java:771) 
at
com.ibm.ws.naming.jndicos.CNContextImpl.cosResolve(CNContextImpl.java:2804) 
at com.ibm.ws.naming.jndicos.CNContextImpl.doLookup(CNContextImpl.java:1803) 
... 37 more 

[29.06.12. 18:09:09:766 CEST] 00000017 AxisService W
org.apache.axis2.description.AxisService calculateEPRs Context:
MONSTER2Node04Cell/nodes/MONSTER2Node04/servers/server1, name:
jms/DefaultAsyncReplyCF: First component in name jms/DefaultAsyncReplyCF not
found. 
[29.06.12. 18:09:09:766 CEST] 00000017 servlet E
com.ibm.ws.webcontainer.servlet.ServletWrapper service SRVE0068E: Uncaught
exception created in one of the service methods of the servlet AxisServlet
in application JaxWs-EAR_Novi. Exception created :
java.lang.NullPointerException 
at
com.ibm.ws.websvcs.transport.http.client.WAShttpsAsyncResponseListener.getEPRForService(WAShttpsAsyncResponseListener.java:804)

at
com.ibm.ws.websvcs.transport.http.client.WAShttpsAsyncResponseListener.getEPRsForService(WAShttpsAsyncResponseListener.java:937)

at
org.apache.axis2.description.AxisService.calculateEPRs(AxisService.java:1011) 
at org.apache.axis2.description.AxisService.printWSDL(AxisService.java:1358) 
at
org.apache.axis2.transport.http.ListingAgent.processListService(ListingAgent.java:286) 
at org.apache.axis2.transport.http.AxisServlet.doGet(AxisServlet.java:246) 
at javax.servlet.http.HttpServlet.service(HttpServlet.java:718) 
at javax.servlet.http.HttpServlet.service(HttpServlet.java:831) 
at
com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1657) 
at
com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:939) 
at
com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:502) 
at
com.ibm.ws.webcontainer.servlet.ServletWrapperImpl.handleRequest(ServletWrapperImpl.java:181)

at
com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServletWrapper.java:91)

at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:864) 
at
com.ibm.ws.webcontainer.WSWebContainer.handleRequest(WSWebContainer.java:1592) 
at
com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:186) 
at
com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:452)

at
com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewRequest(HttpInboundLink.java:511)

at
com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.processRequest(HttpInboundLink.java:305)

at
com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink.java:276) 
at
com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.sendToDiscriminators(NewConnectionInitialReadCallback.java:214)

at
com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.complete(NewConnectionInitialReadCallback.java:113)

at
com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:165)

at
com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217) 
at
com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161) 
at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:138) 
at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:204) 
at
com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:775) 
at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:905) 
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1613) 

[29.06.12. 18:09:09:766 CEST] 00000017 LocalTranCoor E WLTC0017E: Resources
rolled back due to setRollbackOnly() being called. 
[29.06.12. 18:09:09:766 CEST] 00000017 webapp E
com.ibm.ws.webcontainer.webapp.WebApp logServletError SRVE0293E: [Servlet
Error]-[AxisServlet]: java.lang.NullPointerException 
at
com.ibm.ws.websvcs.transport.http.client.WAShttpsAsyncResponseListener.getEPRForService(WAShttpsAsyncResponseListener.java:804)

at
com.ibm.ws.websvcs.transport.http.client.WAShttpsAsyncResponseListener.getEPRsForService(WAShttpsAsyncResponseListener.java:937)

at
org.apache.axis2.description.AxisService.calculateEPRs(AxisService.java:1011) 
at org.apache.axis2.description.AxisService.printWSDL(AxisService.java:1358) 
at
org.apache.axis2.transport.http.ListingAgent.processListService(ListingAgent.java:286) 
at org.apache.axis2.transport.http.AxisServlet.doGet(AxisServlet.java:246) 
at javax.servlet.http.HttpServlet.service(HttpServlet.java:718) 
at javax.servlet.http.HttpServlet.service(HttpServlet.java:831) 
at
com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1657) 
at
com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:939) 
at
com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:502) 
at
com.ibm.ws.webcontainer.servlet.ServletWrapperImpl.handleRequest(ServletWrapperImpl.java:181)

at
com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServletWrapper.java:91)

at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:864) 
at
com.ibm.ws.webcontainer.WSWebContainer.handleRequest(WSWebContainer.java:1592) 
at
com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:186) 
at
com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:452)

at
com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewRequest(HttpInboundLink.java:511)

at
com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.processRequest(HttpInboundLink.java:305)

at
com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink.java:276) 
at
com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.sendToDiscriminators(NewConnectionInitialReadCallback.java:214)

at
com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.complete(NewConnectionInitialReadCallback.java:113)

at
com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:165)

at
com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217) 
at
com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161) 
at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:138) 
at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:204) 
at
com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:775) 
at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:905) 
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1613) 


2.	Experiment: Request/Response cycle with SECURITY ENABLED.

	2.1.	Message sent from client:

<?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Header><wsse:Security
xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"
soapenv:mustUnderstand="1"><wsu:Timestamp
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"
wsu:Id="Timestamp-1"><wsu:Created>2012-06-29T16:05:16.684Z</wsu:Created><wsu:Expires>2012-06-29T16:10:16.684Z</wsu:Expires></wsu:Timestamp><wsse:BinarySecurityToken
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"
EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary"
ValueType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#X509v3"
wsu:Id="CertId-FFC59DA2220A26958613409859196331">MIICkTCCAfqgAwIBAgIETww4XjANBgkqhkiG9w0BAQQFADCBjDELMAkGA1UEBhMCSFIxDDAKBgNVBBETAzM4NTERMA8GA1UECBMISHJ2YXRza2ExDzANBgNVBAcTBlphZ3JlYjENMAsGA1UEChMERmluYTETMBEGA1UECxMKUHJvZ3JhbWVyaTEnMCUGA1UEAxMeZHRvbWxqZW5vdmljMS5pbnRyYW5ldC5maW5hLmhyMB4XDTEyMDExMDEzMDg0NloXDTEzMDEwOTEzMDg0NlowgYwxCzAJBgNVBAYTAkhSMQwwCgYDVQQREwMzODUxETAPBgNVBAgTCEhydmF0c2thMQ8wDQYDVQQHEwZaYWdyZWIxDTALBgNVBAoTBEZpbmExEzARBgNVBAsTClByb2dyYW1lcmkxJzAlBgNVBAMTHmR0b21samVub3ZpYzEuaW50cmFuZXQuZmluYS5ocjCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEAlAjMTPsQGJ0VoDAo2BQZ9YRAUgB79Uz4XIwHrQs4UfMw8coYy6cIuELQEXA8Dd9CY9BGYHSmMnRZmK8AW3nNUWoZFRqdMJbnlPq8rxaKETdkCE2ovVhUizF2Cg8Pkmpvqqv6Vlvm+xQPdeqzQ6Idjkh+L2nzxE1Eemycgr30Hm8CAwEAATANBgkqhkiG9w0BAQQFAAOBgQAZU/DMFnjnNW8HUYBnT4piKWRNyIBspulyMqxFXIPG8yd9fJRSQ7UzF11j7jNfRc6YOzxpGZsXe3w29lkW4FoxFZ1M+vX6706YFsw49Cmm0YdfDkBVi9i3y93xR5Z0G7DUyGmiUO3wfVfhjnoYz1XsKdzqpgLoIBKMsiP/hZh+/w==</wsse:BinarySecurityToken><ds:Signature
xmlns:ds="http://www.w3.org/2000/09/xmldsig#" Id="Signature-2"> 
<ds:SignedInfo> 
<ds:CanonicalizationMethod
Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#" /> 
<ds:SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1"
/> 
<ds:Reference URI="#Id-499129792"> 
<ds:Transforms> 
<ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#" /> 
</ds:Transforms> 
<ds:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" /> 
<ds:DigestValue>zTGO/5TCnNh9ex6znyWxy8EyEFU=</ds:DigestValue> 
</ds:Reference> 
<ds:Reference URI="#Timestamp-1"> 
<ds:Transforms> 
<ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#" /> 
</ds:Transforms> 
<ds:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" /> 
<ds:DigestValue>XzkSJOTJ5d+yHVlNDpW1dvXvYkE=</ds:DigestValue> 
</ds:Reference> 
</ds:SignedInfo> 
<ds:SignatureValue> 
Xt5/lEuHVAfOs/BSsCUHbrANFr3NHFCuw3/qdB+zXWBSxCjYva+YeXtCVWUGVZQ3+1JoitQzSgB5 
fYefDdOqFONpCppmoxPE46AytJAWn97SGOr0nqeqGCBcp6GFKglQEkl0zowzICNCTOk7ndVX0Co8 
MeSe1QJHIgObV4Be2SI= 
</ds:SignatureValue> 
<ds:KeyInfo Id="KeyId-FFC59DA2220A26958613409859196482"> 
<wsse:SecurityTokenReference
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"
wsu:Id="STRId-FFC59DA2220A26958613409859196483"><wsse:Reference
URI="#CertId-FFC59DA2220A26958613409859196331"
ValueType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#X509v3"
/></wsse:SecurityTokenReference> 
</ds:KeyInfo> 
</ds:Signature></wsse:Security></soapenv:Header><soapenv:Body
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"
wsu:Id="Id-499129792"><ns3:SendOutgoingInvoiceMsg
xmlns:ns3="http://fina.hr/eracun/SendOutgoingInvoice/v0.1"
xmlns="http://fina.hr/eracun/invoicewebservicecomponents/v0.1"
xmlns:ns2="http://fina.hr/eracun/SendIncomingInvoiceStatus/v0.1"><HeaderSupplier><MessageID>987654321</MessageID><SupplierID>123456789</SupplierID><MessageType>3</MessageType><MessageAttributes>nekaj</MessageAttributes></HeaderSupplier><ns3:Data>emFrYWo=</ns3:Data></ns3:SendOutgoingInvoiceMsg></soapenv:Body></soapenv:Envelope>


	2.2.	Message sent from service (debugger didn't step into password handler
on the service side) 

<?xml version="1.0" encoding="UTF-8"?><soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Body><soapenv:Fault
xmlns:axis2ns1="http://schemas.xmlsoap.org/soap/envelope/"><faultcode>axis2ns1:MustUnderstand</faultcode><faultstring>Must
Understand check failed for headers:
{http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd}Security</faultstring><detail></detail></soapenv:Fault></soapenv:Body></soapenv:Envelope>



	2.3.	Java client log after request/response cycle  was this:
Exception in thread "main" javax.xml.ws.ProtocolException: Must Understand
check failed for headers:
{http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd}Security

at
org.apache.axis2.jaxws.ExceptionFactory.createProtocolException(ExceptionFactory.java:199)

at
org.apache.axis2.jaxws.ExceptionFactory.makeProtocolException(ExceptionFactory.java:97) 
at
org.apache.axis2.jaxws.marshaller.impl.alt.MethodMarshallerUtils.createSystemException(MethodMarshallerUtils.java:1333)

at
org.apache.axis2.jaxws.marshaller.impl.alt.MethodMarshallerUtils.demarshalFaultResponse(MethodMarshallerUtils.java:1052)

at
org.apache.axis2.jaxws.marshaller.impl.alt.DocLitBareMethodMarshaller.demarshalFaultResponse(DocLitBareMethodMarshaller.java:415)

at
org.apache.axis2.jaxws.client.proxy.JAXWSProxyHandler.getFaultResponse(JAXWSProxyHandler.java:577)

at
org.apache.axis2.jaxws.client.proxy.JAXWSProxyHandler.createResponse(JAXWSProxyHandler.java:520)

at
org.apache.axis2.jaxws.client.proxy.JAXWSProxyHandler.invokeSEIMethod(JAXWSProxyHandler.java:386)

at
org.apache.axis2.jaxws.client.proxy.JAXWSProxyHandler.invoke(JAXWSProxyHandler.java:171) 
at $Proxy28.sendOutgoingInvoice(Unknown Source) 
at
hr.fina.jaxws.invoicesStatusesService.client.WebServiceClient.main(WebServiceClient.java:98)


	2.4.	SystemOut.log didn't show anything.


3.	Experiment: Request/Response cycle with SECURITY DISABLED
	
	3.1.	Message sent from client:
<?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Body><ns3:SendOutgoingInvoiceMsg
xmlns="http://fina.hr/eracun/invoicewebservicecomponents/v0.1"
xmlns:ns2="http://fina.hr/eracun/SendIncomingInvoiceStatus/v0.1"
xmlns:ns3="http://fina.hr/eracun/SendOutgoingInvoice/v0.1"><HeaderSupplier><MessageID>987654321</MessageID><SupplierID>123456789</SupplierID><MessageType>3</MessageType><MessageAttributes>nekaj</MessageAttributes></HeaderSupplier><ns3:Data>emFrYWo=</ns3:Data></ns3:SendOutgoingInvoiceMsg></soapenv:Body></soapenv:Envelope>


	3.2.	Message sent from servce was not shown in TCP/IP monitor. Debugger did
step into service method.

	3.3.	Java client log after request/response cycle  was this:

Exception in thread "main" javax.xml.ws.WebServiceException:
com.ctc.wstx.exc.WstxEOFException: Unexpected EOF in prolog 
at javax.xml.stream.SerializableLocation@167e167e 
at
org.apache.axis2.jaxws.ExceptionFactory.createWebServiceException(ExceptionFactory.java:175)

at
org.apache.axis2.jaxws.ExceptionFactory.makeWebServiceException(ExceptionFactory.java:70)

at
org.apache.axis2.jaxws.ExceptionFactory.makeWebServiceException(ExceptionFactory.java:128)

at
org.apache.axis2.jaxws.core.controller.impl.AxisInvocationController.execute(AxisInvocationController.java:572)

at
org.apache.axis2.jaxws.core.controller.impl.AxisInvocationController.doInvoke(AxisInvocationController.java:123)

at
org.apache.axis2.jaxws.core.controller.impl.InvocationControllerImpl.invoke(InvocationControllerImpl.java:93)

at
org.apache.axis2.jaxws.client.proxy.JAXWSProxyHandler.invokeSEIMethod(JAXWSProxyHandler.java:373)

at
org.apache.axis2.jaxws.client.proxy.JAXWSProxyHandler.invoke(JAXWSProxyHandler.java:171) 
at $Proxy28.sendOutgoingInvoice(Unknown Source) 
at
hr.fina.jaxws.invoicesStatusesService.client.WebServiceClient.main(WebServiceClient.java:98)

Caused by: com.ctc.wstx.exc.WstxEOFException: Unexpected EOF in prolog 
at javax.xml.stream.SerializableLocation@167e167e 
at com.ctc.wstx.sr.StreamScanner.throwUnexpectedEOF(StreamScanner.java:686) 
at com.ctc.wstx.sr.BasicStreamReader.handleEOF(BasicStreamReader.java:2134) 
at
com.ctc.wstx.sr.BasicStreamReader.nextFromProlog(BasicStreamReader.java:2040) 
at com.ctc.wstx.sr.BasicStreamReader.next(BasicStreamReader.java:1069) 
at
org.apache.axiom.util.stax.wrapper.XMLStreamReaderWrapper.next(XMLStreamReaderWrapper.java:225)

at
org.apache.axiom.util.stax.dialect.DisallowDoctypeDeclStreamReaderWrapper.next(DisallowDoctypeDeclStreamReaderWrapper.java:34)

at
org.apache.axiom.util.stax.wrapper.XMLStreamReaderWrapper.next(XMLStreamReaderWrapper.java:225)

at
org.apache.axiom.om.impl.builder.StAXOMBuilder.parserNext(StAXOMBuilder.java:681) 
at
org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java:214) 
at
org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.getSOAPEnvelope(StAXSOAPModelBuilder.java:204)

at
org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.<init>(StAXSOAPModelBuilder.java:154)

at
org.apache.axiom.om.impl.AbstractOMMetaFactory.createStAXSOAPModelBuilder(AbstractOMMetaFactory.java:73)

at
org.apache.axiom.om.impl.AbstractOMMetaFactory.createSOAPModelBuilder(AbstractOMMetaFactory.java:79)

at
org.apache.axiom.om.OMXMLBuilderFactory.createSOAPModelBuilder(OMXMLBuilderFactory.java:196)

at org.apache.axis2.builder.SOAPBuilder.processDocument(SOAPBuilder.java:55) 
at
org.apache.axis2.transport.TransportUtils.createDocumentElement(TransportUtils.java:179) 
at
org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:145) 
at
org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:108) 
at
org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:67) 
at
org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:354)

at
org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:421) 
at
org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:229)

at org.apache.axis2.client.OperationClient.execute(OperationClient.java:165) 
at
org.apache.axis2.jaxws.core.controller.impl.AxisInvocationController.execute(AxisInvocationController.java:567)

... 6 more 

	3.4.	SystemOut.log didn't show anything.
------------------------------------------------------------------------------------------------------

All this results reminds me on exception which was thrown when I was using
RSA 7 and WebSphere 6.1: 

Exception in thread "main" javax.xml.ws.soap.SOAPFaultException:
java.lang.RuntimeException: The service class cannot be found for this
AxisService.
at
org.apache.axis2.jaxws.marshaller.impl.alt.MethodMarshallerUtils.createSystemException(MethodMarshallerUtils.java:1326)
at
org.apache.axis2.jaxws.marshaller.impl.alt.MethodMarshallerUtils.demarshalFaultResponse(MethodMarshallerUtils.java:1052)
at
org.apache.axis2.jaxws.marshaller.impl.alt.DocLitBareMethodMarshaller.demarshalFaultResponse(DocLitBareMethodMarshaller.java:415)
at
org.apache.axis2.jaxws.client.proxy.JAXWSProxyHandler.getFaultResponse(JAXWSProxyHandler.java:577)
at
org.apache.axis2.jaxws.client.proxy.JAXWSProxyHandler.createResponse(JAXWSProxyHandler.java:520)
at
org.apache.axis2.jaxws.client.proxy.JAXWSProxyHandler.invokeSEIMethod(JAXWSProxyHandler.java:386)
at
org.apache.axis2.jaxws.client.proxy.JAXWSProxyHandler.invoke(JAXWSProxyHandler.java:171)
at $Proxy28.sendOutgoingInvoice(Unknown Source)
at
hr.fina.jaxws.invoicesStatusesService.client.WebServiceClient.main(WebServiceClient.java:92)


Do you have idea what is going wrong ?

Thanks.

-- 
View this message in context: http://old.nabble.com/JAX-WS-client-and-service-with-Rampart-module-for-signing-messages-tp34070987p34093419.html
Sent from the Axis - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@axis.apache.org
For additional commands, e-mail: java-user-help@axis.apache.org


Mime
View raw message