scheu       02/05/29 14:25:30

  Modified:    java/src/org/apache/axis/wsdl/fromJava Emitter.java
  Log:
  The binding input/output elements namespace attribute is being set incorrectly.
  It should be set to a valid namespace uri.
  
  Revision  Changes    Path
  1.36      +6 -4      xml-axis/java/src/org/apache/axis/wsdl/fromJava/Emitter.java
  
  Index: Emitter.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/wsdl/fromJava/Emitter.java,v
  retrieving revision 1.35
  retrieving revision 1.36
  diff -u -r1.35 -r1.36
  --- Emitter.java      28 May 2002 15:03:49 -0000      1.35
  +++ Emitter.java      29 May 2002 21:25:30 -0000      1.36
  @@ -774,8 +774,9 @@
           else
               soapBodyIn.setNamespaceURI(targetService);
           QName operQName = desc.getElementQName();
  -        if (operQName != null) {
  -            soapBodyIn.setNamespaceURI(operQName.getLocalPart());
  +        if (operQName != null &&
  +            !operQName.getNamespaceURI().equals("")) {
  +            soapBodyIn.setNamespaceURI(operQName.getNamespaceURI());
           }
           soapBodyIn.setEncodingStyles(encodingList);
           bindingInput.addExtensibilityElement(soapBodyIn);
  @@ -794,8 +795,9 @@
           else
               soapBodyOut.setNamespaceURI(targetService);
           QName retQName = desc.getReturnQName();
  -        if (retQName != null) {
  -            soapBodyOut.setNamespaceURI(retQName.getLocalPart());
  +        if (retQName != null && 
  +            !retQName.getNamespaceURI().equals("")) {
  +            soapBodyOut.setNamespaceURI(retQName.getNamespaceURI());
           }
           bindingOutput.addExtensibilityElement(soapBodyOut);
   
  
  
  


Reply via email to