Hi,
I want to use the following configuration which requires SSL and HTTP
authentication:
| <port-component>
| <port-component-name>OrgEndpoint</port-component-name>
| <port-component-uri>/orgainization/*</port-uri>
| <auth-method>BASIC</auth-method>
| <transport-guarantee>CONFIDENTIAL</transport-gaurantee>
| </port-component>
|
How can I change my Java client code to force it to use SSL and HTTP
authentication? My following code is:
| protected Service getService( ) throws MalformedURLException,
ServiceException {
| URL wsdlLocation = new URL( urlstr );
| URL mappingLocation =
this.getClass().getClassLoader().getResource( "META-INF/jaxrpc-mapping.xml" );
| URL ws4eeMetaData = null;
| QName serviceName = new QName( serviceUrn, this.serviceName );
| String portName = null;
|
| org.jboss.webservice.client.ServiceFactoryImpl factory =
(org.jboss.webservice.client.ServiceFactoryImpl) ServiceFactory.newInstance();
| Service service = factory.createService( wsdlLocation,
mappingLocation, ws4eeMetaData, serviceName, portName);
|
| return service;
| }
|
| public void testStringResult() throws Exception {
| Service service = getService();
| WebServicesTest svc = (WebServicesTest)
service.getPort(WebServicesTest.class);
| String value = svc.getString();
| System.out.println( "WebServicesTest.getString() returned:" + value
);
| assertNotNull( value );
| assertEquals( WebServicesTestBean.STRING_VALUE, value );
| }
|
Thanks!
Barry
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3884801#3884801
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3884801
-------------------------------------------------------
This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening
July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual
core and dual graphics technology at this free one hour event hosted by HP,
AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user