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 Steve Karlovitz <st...@synegen.com> on 2009/08/18 16:20:25 UTC

Adding WSS Headers to the WSDL

I was wondering if somebody could help, I have written a web-service  
that is to be consumed by SalesForce.com.  The web service utilizes WS- 
Security, I have been told that in order for SalesForce.com to consume  
and utilize this web-service I have to add the WSS definition to the  
WSDL.  Does anyone have  a working example of this?  I am using  
username/pass and timestamp tokens.

Thanks
Steve

Re: Adding WSS Headers to the WSDL

Posted by Chinmoy Chakraborty <cc...@gmail.com>.
Are you using policy based WS-Security? You may look at [1]..

[1] - https://www.wso2.org/library/3190

Chinmoy

On Tue, Aug 18, 2009 at 7:50 PM, Steve Karlovitz <
steve.karlovitz@synegen.com> wrote:

> I was wondering if somebody could help, I have written a web-service that
> is to be consumed by SalesForce.com.  The web service utilizes WS-Security,
> I have been told that in order for SalesForce.com to consume and utilize
> this web-service I have to add the WSS definition to the WSDL.  Does anyone
> have  a working example of this?  I am using username/pass and timestamp
> tokens.
>
> Thanks
> Steve
>

Re: Adding WSS Headers to the WSDL

Posted by Steve Karlovitz <st...@synegen.com>.
Thanks for everyones help.

Sent from my iPhone

On Aug 18, 2009, at 5:53 PM, Dennis Sosnoski <dm...@sosnoski.com> wrote:

> If you're using Axis2 and WS-Policy configuration of the security  
> the policy information should be automatically added to the  
> generated WSDL. Try a browser request to your service endpoint + "? 
> wsdl" (e.g. "http://localhost:8080/axis2/services/myservice?wsdl")  
> and see if the policy is present.
>
> - Dennis
>
> -- 
> Dennis M. Sosnoski
> Java XML and Web Services
> Axis2 Training and Consulting
> http://www.sosnoski.com - http://www.sosnoski.co.nz
> Seattle, WA +1-425-939-0576 - Wellington, NZ +64-4-298-6117
>
>
>
> Steve Karlovitz wrote:
>> I was wondering if somebody could help, I have written a web- 
>> service that is to be consumed by SalesForce.com.  The web service  
>> utilizes WS-Security, I have been told that in order for SalesForce.com 
>>  to consume and utilize this web-service I have to add the WSS  
>> definition to the WSDL.  Does anyone have  a working example of  
>> this?  I am using username/pass and timestamp tokens.
>>
>> Thanks
>> Steve
>>

Re: Adding WSS Headers to the WSDL

Posted by Dennis Sosnoski <dm...@sosnoski.com>.
Oh, and set the "useOriginalwsdl" parameter "false" in your services.xml 
so that Axis2 will generate the WSDL, rather than just using the one you 
supplied originally.

  - Dennis


Dennis Sosnoski wrote:
> If you're using Axis2 and WS-Policy configuration of the security the 
> policy information should be automatically added to the generated 
> WSDL. Try a browser request to your service endpoint + "?wsdl" (e.g. 
> "http://localhost:8080/axis2/services/myservice?wsdl") and see if the 
> policy is present.
>
>  - Dennis
>

Re: Adding WSS Headers to the WSDL

Posted by Dennis Sosnoski <dm...@sosnoski.com>.
If you're using Axis2 and WS-Policy configuration of the security the 
policy information should be automatically added to the generated WSDL. 
Try a browser request to your service endpoint + "?wsdl" (e.g. 
"http://localhost:8080/axis2/services/myservice?wsdl") and see if the 
policy is present.

  - Dennis

-- 
Dennis M. Sosnoski
Java XML and Web Services
Axis2 Training and Consulting
http://www.sosnoski.com - http://www.sosnoski.co.nz
Seattle, WA +1-425-939-0576 - Wellington, NZ +64-4-298-6117



Steve Karlovitz wrote:
> I was wondering if somebody could help, I have written a web-service 
> that is to be consumed by SalesForce.com.  The web service utilizes 
> WS-Security, I have been told that in order for SalesForce.com to 
> consume and utilize this web-service I have to add the WSS definition 
> to the WSDL.  Does anyone have  a working example of this?  I am using 
> username/pass and timestamp tokens.
>
> Thanks
> Steve
>