[
https://issues.apache.org/jira/browse/AXIS2-5942?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Ralf Hauser updated AXIS2-5942:
-------------------------------
Description:
I am trying to get the SAAJ example
[https://raw.githubusercontent.com/phaupt/mobileid-java/master/client-saaj/src/com/swisscom/mid/client/MobileidSign.java]
to work.
Most bothering is that trustStore and auth keystore are set globally.
If I were able to access org.apache.axis2.client.Options, with
options.setProperty(HTTPConstants.CUSTOM_PROTOCOL_HANDLER, ...)
this is easy to achieve.
Therefore,
1) make it possible to sub-class org.apache.axis2.saaj.SOAPConnectionImpl by
making its constructor protected
2) add a "call" variant where one has access to the Options:
public SOAPMessage call(SOAPMessage request, Object endpoint) throws
SOAPException
{ Options options = new Options(); return call(request,
endpoint, options); }
Many thanks!
Ralf
P.S.: a further problem was that SOAPMessage resulting from
[MobileidSign.|https://raw.githubusercontent.com/phaupt/mobileid-java/master/client-saaj/src/com/swisscom/mid/client/MobileidSign.java]createSOAPRequest()
would loose all attributes when being serialized.
When I started with 3)
SOAPFactory messageFactory =
org.apache.axiom.om.OMAbstractFactory.getSOAP12Factory();
OAPMessage soapMessage = messageFactory.createSOAPMessage();
the results were better, but portability suffered (I had to rewrite the entire
construction of the message axiom-proprietary :( )
was:
I am trying to get the SAAJ example
[https://raw.githubusercontent.com/phaupt/mobileid-java/master/client-saaj/src/com/swisscom/mid/client/MobileidSign.java]
to work.
Most bothering is that trustStore and auth keystore are set globally.
If I were able to access org.apache.axis2.client.Options, with
options.setProperty(HTTPConstants.CUSTOM_PROTOCOL_HANDLER, ...)
this is easy to achieve.
Therefore,
1) make it possible to sub-class org.apache.axis2.saaj.SOAPConnectionImpl by
making its constructor protected
2) add a "call" variant where one has access to the Options:
public SOAPMessage call(SOAPMessage request, Object endpoint) throws
SOAPException
{ Options options = new Options(); return call(request,
endpoint, options); }
Many thanks!
Ralf
P.S.: a further problem was that SOAPMessage resulting from
[MobileidSign.|https://raw.githubusercontent.com/phaupt/mobileid-java/master/client-saaj/src/com/swisscom/mid/client/MobileidSign.java]createSOAPRequest()
would loose all attributes when being serialized.
When I started with 3)
SOAPFactory messageFactory =
org.apache.axiom.om.OMAbstractFactory.getSOAP12Factory();
OAPMessage soapMessage = messageFactory.createSOAPMessage();
the results were better, but portability suffered (I had to rewrite the entire
construction of the message axiom-proprietary :( )
> allow for per SOAPConnection.call() security
> --------------------------------------------
>
> Key: AXIS2-5942
> URL: https://issues.apache.org/jira/browse/AXIS2-5942
> Project: Axis2
> Issue Type: Improvement
> Affects Versions: 1.7.8
> Reporter: Ralf Hauser
> Priority: Major
>
> I am trying to get the SAAJ example
> [https://raw.githubusercontent.com/phaupt/mobileid-java/master/client-saaj/src/com/swisscom/mid/client/MobileidSign.java]
> to work.
>
> Most bothering is that trustStore and auth keystore are set globally.
>
> If I were able to access org.apache.axis2.client.Options, with
> options.setProperty(HTTPConstants.CUSTOM_PROTOCOL_HANDLER, ...)
> this is easy to achieve.
> Therefore,
> 1) make it possible to sub-class org.apache.axis2.saaj.SOAPConnectionImpl by
> making its constructor protected
>
> 2) add a "call" variant where one has access to the Options:
>
> public SOAPMessage call(SOAPMessage request, Object endpoint) throws
> SOAPException
> { Options options = new Options(); return call(request,
> endpoint, options); }
> Many thanks!
> Ralf
> P.S.: a further problem was that SOAPMessage resulting from
> [MobileidSign.|https://raw.githubusercontent.com/phaupt/mobileid-java/master/client-saaj/src/com/swisscom/mid/client/MobileidSign.java]createSOAPRequest()
> would loose all attributes when being serialized.
> When I started with 3)
> SOAPFactory messageFactory =
> org.apache.axiom.om.OMAbstractFactory.getSOAP12Factory();
> OAPMessage soapMessage = messageFactory.createSOAPMessage();
> the results were better, but portability suffered (I had to rewrite the
> entire construction of the message axiom-proprietary :( )
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]