You can embed username and password in url

http://username:password@url/.........


On Wed, Aug 14, 2013 at 2:20 PM, Isuru Gunawardana <[email protected]> wrote:

> Hi,
>
> When initializing the servicestub it gives the following error,
>
> org.apache.axis2.AxisFault: Policy doesn't contain any policy alternatives
> at
> org.apache.axis2.description.AxisDescription.engageModulesForPolicy(AxisDescription.java:358)
>  at
> org.apache.axis2.description.AxisDescription.applyPolicy(AxisDescription.java:322)
> at
> org.apache.axis2.description.AxisDescription.applyPolicy(AxisDescription.java:327)
>  at
> org.apache.axis2.description.AxisDescription.applyPolicy(AxisDescription.java:327)
>
>
> And I think its because of the constructor (following) is trying to access
> the password protected url,
>
> public ZIDOC_MPOSTStub() throws org.apache.axis2.AxisFault {
>
>                     this("http://url/zidoc_mpost"; );
>
>     }
>
>
> If so how to specify the username and password.
>
>
> --
> Regards,
> Isuru Gunawardana
>



-- 
Miyuru Wanninayaka
Technical Lead
WSO2 Inc. : http://wso2.com

Mobile : +94 77 209 9788
Blog : http://miyurudw.blogspot.com
Flickr : http://www.flickr.com/photos/miyuru_daminda
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to