You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by gd...@apache.org on 2001/08/20 00:50:12 UTC

cvs commit: xml-axis/java/src/org/apache/axis/utils WSDLUtils.java

gdaniels    01/08/19 15:50:12

  Modified:    java/src/org/apache/axis/transport/http AxisServlet.java
               java/src/org/apache/axis/utils WSDLUtils.java
  Log:
  Add soap:operation element to WSDL, and make URL suitable for inclusion.
  
  *** ALL : is there a better way to get the complete request URL including
      port and host and all that?  This seems kludgey.
  
  The WSDL generated is now sufficient for SOAP::Lite to successfully
  call the Calculator and StockQuote examples.
  
  Revision  Changes    Path
  1.36      +3 -1      xml-axis/java/src/org/apache/axis/transport/http/AxisServlet.java
  
  Index: AxisServlet.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/transport/http/AxisServlet.java,v
  retrieving revision 1.35
  retrieving revision 1.36
  diff -u -r1.35 -r1.36
  --- AxisServlet.java	2001/08/17 20:44:00	1.35
  +++ AxisServlet.java	2001/08/19 22:50:12	1.36
  @@ -116,7 +116,9 @@
                       Class cls = (Class)msgContext.getProperty("JWSClass");
                       
                       // !!! Need to make this an absolute URI
  -                    String url = req.getRequestURI();
  +                    String url = req.getScheme() + "://" +
  +                                 req.getServerName() + ":" +
  +                                 req.getServerPort() + req.getRequestURI();
                       
                       // !!! This should be something reasonable
                       String urn = "urn:service";
  
  
  
  1.2       +5 -0      xml-axis/java/src/org/apache/axis/utils/WSDLUtils.java
  
  Index: WSDLUtils.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/utils/WSDLUtils.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- WSDLUtils.java	2001/08/17 20:44:01	1.1
  +++ WSDLUtils.java	2001/08/19 22:50:12	1.2
  @@ -138,6 +138,11 @@
               
               bindingOper.setName(oper.getName());
               
  +            SOAPOperation soapOper = new SOAPOperation();
  +            soapOper.setSoapActionURI("");
  +            soapOper.setStyle("rpc");
  +            bindingOper.addExtensibilityElement(soapOper);
  +            
               SOAPBody soapBody = new SOAPBody();
               soapBody.setUse("encoded");
               soapBody.setEncodingStyles(encodingList);