[jboss-user] [JBossWS] - More soap:address problems

justinkwaugh do-not-reply at jboss.com
Wed Jan 9 11:04:13 EST 2008


I am having two specific problems with the auto generated/replaced soap:address element in the wsdl.

1.  I cannot get it to say https:// instead of http://. 

Some suggestions I've seen on the forums here are deprecated (Use of annotations that don't exist anymore) and all are related to setting the transport guarantee (which doesn't seem to have any effect anyway).  My setup is apache talking to jboss through jkmount, and i'm using a POJO endpoint.  I really love the idea of the address rewriting as configured in the jboss-ws.sar/META-INF/jboss-beans.xml but it does not rewrite the protocol, only the hostname:port/path.  I glanced at the code, and it plainly just ignores the incoming request protocol.  Why is this?  If I am accessing it via an https:// URL, why would it not rewrite it using https://?

2.  The path to the endpoint is plain wrong.

I have a context root specified in the jboss-web.xml of my war, and that is all it uses no matter what.  It simply ignores the servlet name and rewrites the path with just the context-root even when I specify my own WSDL in the @WebService annotation.  My servlet is specified in the web.xml as follows..


  | <servlet>
  |     <servlet-name>MyWebservice</servlet-name>
  |     <servlet-class>com.mycompany.webservices.MyWebservice</servlet-class>
  |   </servlet>
  |   <servlet-mapping>
  |     <servlet-name>MyWebservice</servlet-name>
  |     <url-pattern>/*</url-pattern>
  |   </servlet-mapping>
  | 

My jboss-web.xml has the following:


  | <jboss-web>
  |     <context-root>webservice</context-root>
  | </jboss-web>
  | 

The correct endpoint should be 
https://myhost:443/webservice/MyWebservice 

but no matter what I do, it rewrites it to just 
https://myhost:443/webservice 

Are there any configurations I've overlooked that can resolve these 2 problems?


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

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



More information about the jboss-user mailing list