[jbossws-users] [JBossWS] - Re: More soap:address problems

alessio.soldano@jboss.com do-not-reply at jboss.com
Fri Jan 11 19:34:16 EST 2008


"justinkwaugh" wrote : 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://?
  | 
You might want to create a JIRA issue for this.

anonymous wrote : 
  | 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 
  | 

This is the right behaviour IMHO. You should use this to get the path /webservice/MyWebservice:

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

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

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



More information about the jbossws-users mailing list