[jboss-user] [JBossWS] - Re: problem with calling ssl web service

rapowder do-not-reply at jboss.com
Thu Apr 17 05:29:53 EDT 2008


The '1' is not a mistake, it was just an example to tell you that I have different webservices under different paths with the same root:

/interfaces/InterfaceBean1
  | /interfaces/InterfaceBean2
  | etc.

I am not sure whether this was clear, but that those are webservices listening to SOAP calls and the problem is that the associated wsdl files are not correctly generated by JBoss.

I also have the same configuration in server.xml, and I also have a redirection from http://...:8080 to https://...:8443, which works correctly for my web client.

I was actually wondering if the configuration is possible through jws annotations... Let me post you some more code, maybe this will help...
Here one of the interface beans:


  | import javax.ejb.Stateless;
  | import javax.jws.WebMethod;
  | import javax.jws.WebParam;
  | import javax.jws.WebService;
  | import javax.jws.soap.SOAPBinding;
  | 
  | @Stateless
  | @WebService
  | @SOAPBinding(style = SOAPBinding.Style.RPC)
  | public class GenericInterfaceAgentBean implements GenericInterfaceAgent {
  | 
  |     @WebMethod
  |     public String sessionLogin(
  |             @WebParam(name = "pUsername")String user,
  |             @WebParam(name = "pPassword")String pass
  |     ) { ... }
  | 
  | ....
  | 
  | }
  | 

When I restart JBoss, a wsdl file is generated under the path:

jboss\server\myconf\data\wsdl\myapp.ear\myapp.jar\GenericInterfaceAgentBeanServiceXXX.wsdl

and the wsdl file contains (useful pieces of code)
(srv11 is the hostname of my server)



  | <?xml version="1.0" encoding="UTF-8"?>
  | <definitions name="GenericInterfaceAgentBeanService" 
  | targetNamespace="http://beans.generic.interfaces.system.myserver.com/" 
  | xmlns:tns="http://beans.generic.interfaces.system.myserver.com/" 
  | xmlns:ns1="http://jaxb.dev.java.net/array" 
  | xmlns:xsd="http://www.w3.org/2001/XMLSchema" 
  | xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" 
  | xmlns="http://schemas.xmlsoap.org/wsdl/">
  | 
  | ...
  | 
  |   <service name="GenericInterfaceAgentBeanService">
  |     <port name="GenericInterfaceAgentBeanPort" binding="tns:GenericInterfaceAgentBeanBinding">
  |       <soap:address location="http://srv11:8080/interfaces/GenericInterfaceAgentBean"/>
  |     </port>
  |   </service>
  | 
  | 

but what I would like is


  | 
  | ...
  | 
  |   <service name="GenericInterfaceAgentBeanService">
  |     <port name="GenericInterfaceAgentBeanPort" binding="tns:GenericInterfaceAgentBeanBinding">
  |       <soap:address location="https://www.myserver.com:8443/interfaces/GenericInterfaceAgentBean"/>
  |     </port>
  |   </service>
  | 
  | 

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4144778#4144778

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4144778



More information about the jboss-user mailing list