You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Pete <pw...@yahoo.com> on 2008/01/11 19:34:37 UTC
Problem with code generated by wsdl2java (eclipse plug in) v1.3
Hope this is the right place to post:
We have a non Axis SOAP server that is generating WSDL containing the following policy requirements:
-------------------
<binding name="AccountSoap" type="p:AccountSoap">
<operation name="GetAccount">
<input>
http://SYSD/CICS/XML3/XMLPC003?Request=Policy&Template=TMACCT04&Type=Input"/>
<soap:body use="literal"/>
</input>
<output>
http://SYSD/CICS/XML3/XMLPC003?Request=Policy&Template=TMACCT04&Type=Output"/>
<soap:body use="literal"/>
</output>
</operation>
</binding>
---
The referenced input policy from the above snippet is:
----
<wsp:Policy xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy"
xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy"> <sp:AlgorithmSuite><sp:TripleDesRsa15/></sp:AlgorithmSuite><sp:EncryptedParts><sp:Body/></sp:EncryptedParts><sp:EncryptBeforeSigning/>
<wssx:Audit xmlns:wssx="www.sola.com"
/> </wsp:Policy>
---
Unfortunately the generated code does not seem to reference this, I was of the understanding that the generated code should contain the policy implementation?!
Thanks for any help!
-P
____________________________________________________________________________________
Looking for last minute shopping deals?
Find them fast with Yahoo! Search. http://tools.search.yahoo.com/newsearch/category.php?category=shopping
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org
Re: Problem with code generated by wsdl2java (eclipse plug in) v1.3
Posted by Anne Thomas Manes <at...@gmail.com>.
I think perhaps the WSDL didn't copy and paste correctly into your
email. (Or perhaps gmail just isn't able to display it.)
I read the first bit of the WSDL as:
<input>
http://SYSD/CICS/XML3/XMLPC003?Request=Policy&Template=TMACCT04&Type=Input"/>
But this isn't valid XML. I suppose I should assume that the WSDL is
actually valid XML, though, because otherwise wsdl2java would no doubt
throw an error. Please make sure that the WSDL references the policy
properly, though. The format for WS-PolicyAttachment v1.5 should be
like this:
<wsp:PolicyReference xmlns:wsp="http://www.w3.org/2006/07/ws-policy"
URI="http://SYSD/CICS/XML3/XMLPC003?Request=Policy&Template=TMACCT04&Type=Input"/>
If you are using WS-PolicyAttachment v1.2, it should look like this:
<wsp:PolicyReference xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy"
URI="http://SYSD/CICS/XML3/XMLPC003?Request=Policy&Template=TMACCT04&Type=Input"/>
(I'm not sure whether Axis2 supports both versions of WS-Policy.)
According to this JIRA
[https://issues.apache.org/jira/browse/AXIS2-2426], support for
automatic engagement of Rampart based on WS-Policy was committed last
July and was included in Axis2 1.3. But again we have the question of
version numbers.
The referenced policy is using pre-standard versions of WS-Policy and
WS-SecurityPolicy, plus it includes a proprietary audit policy
(specifc to the SOA Software SOLA product). It could be that Axis2
ignores policies that it doesn't understand.
Anne
On Jan 11, 2008 1:34 PM, Pete <pw...@yahoo.com> wrote:
> Hope this is the right place to post:
>
> We have a non Axis SOAP server that is generating WSDL containing the following policy requirements:
>
> -------------------
> <binding name="AccountSoap" type="p:AccountSoap">
>
> <operation name="GetAccount">
>
> <input>
> http://SYSD/CICS/XML3/XMLPC003?Request=Policy&Template=TMACCT04&Type=Input"/>
> <soap:body use="literal"/>
> </input>
> <output>
> http://SYSD/CICS/XML3/XMLPC003?Request=Policy&Template=TMACCT04&Type=Output"/>
> <soap:body use="literal"/>
> </output>
> </operation>
> </binding>
> ---
>
> The referenced input policy from the above snippet is:
>
> ----
>
>
> <wsp:Policy xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy"
> xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy"> <sp:AlgorithmSuite><sp:TripleDesRsa15/></sp:AlgorithmSuite><sp:EncryptedParts><sp:Body/></sp:EncryptedParts><sp:EncryptBeforeSigning/>
> <wssx:Audit xmlns:wssx="www.sola.com"
> /> </wsp:Policy>
>
>
> ---
>
>
>
> Unfortunately the generated code does not seem to reference this, I was of the understanding that the generated code should contain the policy implementation?!
>
> Thanks for any help!
> -P
>
>
>
>
>
> ____________________________________________________________________________________
> Looking for last minute shopping deals?
> Find them fast with Yahoo! Search. http://tools.search.yahoo.com/newsearch/category.php?category=shopping
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org