axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hawk...@apache.org
Subject cvs commit: ws-axis/c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/cpp/literal ClientStubWriter.java
Date Tue, 24 Aug 2004 14:53:44 GMT
hawkeye     2004/08/24 07:53:44

  Modified:    c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/cpp/literal
                        ClientStubWriter.java
  Log:
  Check if no namespace provided for types.
  
  Submitted by: Andrew Perry
  Reviewed by: Adrian Dick
  
  Revision  Changes    Path
  1.39      +7 -0      ws-axis/c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/cpp/literal/ClientStubWriter.java
  
  Index: ClientStubWriter.java
  ===================================================================
  RCS file: /home/cvs/ws-axis/c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/cpp/literal/ClientStubWriter.java,v
  retrieving revision 1.38
  retrieving revision 1.39
  diff -u -r1.38 -r1.39
  --- ClientStubWriter.java	23 Aug 2004 00:45:31 -0000	1.38
  +++ ClientStubWriter.java	24 Aug 2004 14:53:44 -0000	1.39
  @@ -360,6 +360,13 @@
   					String parameterName = ((ParameterInfo)paramsB.get(i)).getElementNameAsString();
   					//Samisa
   					String namespace = ((ParameterInfo)paramsB.get(i)).getElementName().getNamespaceURI();
  +					// If namespace is empty then getNamespacePrefix will create a new prefix
  +					// with no namespace which causes the server to send a fault message.
  +					// If no namespace for current tag, then use WSDL default namespace
  +					if(namespace.length() == 0)
  +					{
  +						namespace = minfo.getInputMessage().getNamespaceURI();
  +					}
   					int	stringLength = 8 + 1 + parameterName.length() + 1; 
   					 
   					writer.write("\tchar cPrefixAndParamName" + i + "[" + stringLength + "];\n");
  
  
  

Mime
View raw message