dims 2002/06/13 10:14:53
Modified: java/src/org/apache/axis/client Service.java
Log:
Allow createCall to instantiate a Call object even when WSDL is not specified.
Revision Changes Path
1.56 +6 -4 xml-axis/java/src/org/apache/axis/client/Service.java
Index: Service.java
===================================================================
RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/client/Service.java,v
retrieving revision 1.55
retrieving revision 1.56
diff -u -r1.55 -r1.56
--- Service.java 11 Jun 2002 14:53:52 -0000 1.55
+++ Service.java 13 Jun 2002 17:14:53 -0000 1.56
@@ -402,8 +402,13 @@
*/
public javax.xml.rpc.Call createCall(QName portName)
throws ServiceException {
+ Call call = (org.apache.axis.client.Call)createCall();
+ call.setPortTypeName( portName );
+
+ // We can't prefill information if WSDL is not specified,
+ // So just return the call that we just created.
if ( wsdlDefinition == null )
- throw new ServiceException( JavaUtils.getMessage("wsdlMissing00") );
+ return call;
Port port = wsdlService.getPort( portName.getLocalPart() );
if ( port == null )
@@ -413,9 +418,6 @@
PortType portType = binding.getPortType();
if ( portType == null )
throw new ServiceException( JavaUtils.getMessage("noPortType00", "" +
portName) );
-
- Call call = (org.apache.axis.client.Call)createCall();
- call.setPortTypeName( portName );
// Get the URL
////////////////////////////////////////////////////////////////////