>        _call.setOperation(_operations[0
>//references the first
>operation and NOT the 44th..!!!!

Perhaps this is due to the number of operations in the WSDL?  I wasn't able to 
attach the whole WSDL - it was over 10,000 bytes, too big for the list. It had 
45 operations in it.

My initialization of operations looks like this:
static {
        _operations = new org.apache.axis.description.OperationDesc[45];
        _initOperationDesc1();
        _initOperationDesc2();
        _initOperationDesc3();
        _initOperationDesc4();
        _initOperationDesc5();
    }


And in _initOperationDesc5(){
...//some other stuff
        oper = new org.apache.axis.description.OperationDesc();
        oper.setName("Login");
        param = new org.apache.axis.description.ParameterDesc(new 
javax.xml.namespace.QName("http://www.perseus.com/Pdc.WS";, "userName"), 
org.apache.axis.description.ParameterDesc.IN, new 
javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema";, "string"), 
java.lang.String.class, false, false);
        param.setOmittable(true);
        oper.addParameter(param);
        param = new org.apache.axis.description.ParameterDesc(new 
javax.xml.namespace.QName("http://www.perseus.com/Pdc.WS";, "password"), 
org.apache.axis.description.ParameterDesc.IN, new 
javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema";, "string"), 
java.lang.String.class, false, false);
        param.setOmittable(true);
        oper.addParameter(param);
        oper.setReturnType(new 
javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema";, "string"));
        oper.setReturnClass(java.lang.String.class);
        oper.setReturnQName(new 
javax.xml.namespace.QName("http://www.perseus.com/Pdc.WS";, "LoginResult"));
        oper.setStyle(org.apache.axis.constants.Style.WRAPPED);
        oper.setUse(org.apache.axis.constants.Use.LITERAL);
        _operations[44] = oper;
}

The libraries look the same...  Is that all that are explicitly necessary?

I did have one more thing about synchronization, I inserted it below.

Thanks for going over this with me...

Pam


-----Original Message-----
From: Martin Gainty [mailto:[EMAIL PROTECTED]
Sent: Thursday, January 24, 2008 12:01 PM
To: [email protected]
Subject: Re: Webservice Client not working from inside Tomcat5

using  AXIS-1_4 specific environment I generated the following client stub
using WSDL2Java at command line

java -classpath
;%AXIS_HOME%\axis-1_4\build\classes;%JAF_HOME%\jaf-1.1\activation.jar;%AXIS
_HOME%\axis-1_4\lib;%AXIS_HOME%\lib\saaj.jar;%WDL4J_HOME%\lib\wsdl4.jar;%AXI
S_HOME%\axis-1_4\build\lib\commons-discovery-0.2.jar;%COMMONS_LOGGING%\commo
ns-logging.jar;%AXIS_HOME% org.apache.axis.wsdl.WSDL2Java -D Callaway.wsdl

which produces the following debug output..
Symbol Table
-----------------------
org.apache.axis.wsdl.symbolTable.MessageEntry
QName:         {http://www.perseus.com/Pdc.WS}LoginSoapOut
name:          com.perseus.www.Pdc_WS.LoginSoapOut
isReferenced?  true

org.apache.axis.wsdl.symbolTable.DefinedElement
QName:         {http://www.perseus.com/Pdc.WS}LoginResponse
name:          com.perseus.www.Pdc_WS.LoginResponse
isReferenced?  true
Class:         org.apache.axis.wsdl.symbolTable.DefinedElement
Base?:         false
Undefined?:    false
isSimpleType?  false
Node:          [s:element: null]
Dims:
isOnlyLiteralReferenced: true
RefType:
  QName:         {http://www.perseus.com/Pdc.WS}>LoginResponse
  name:          com.perseus.www.Pdc_WS.LoginResponse
  isReferenced?  true
  Class:         org.apache.axis.wsdl.symbolTable.DefinedType
  Base?:         false
  Undefined?:    false
  isSimpleType?  false
  Node:          [s:complexType: null]
  Dims:
  isOnlyLiteralReferenced: true
  RefType:       null


org.apache.axis.wsdl.symbolTable.PortEntry
QName:         ProjectDataSoap
name:          ProjectDataSoap
isReferenced?  false

org.apache.axis.wsdl.symbolTable.MessageEntry
QName:         {http://www.perseus.com/Pdc.WS}LoginSoapIn
name:          com.perseus.www.Pdc_WS.LoginSoapIn
isReferenced?  true

org.apache.axis.wsdl.symbolTable.ServiceEntry
QName:         {http://www.perseus.com/Pdc.WS}ProjectData
name:          com.perseus.www.Pdc_WS.ProjectData
isReferenced?  true

org.apache.axis.wsdl.symbolTable.DefinedType
QName:         {http://www.perseus.com/Pdc.WS}>Login
name:          com.perseus.www.Pdc_WS.Login
isReferenced?  true
Class:         org.apache.axis.wsdl.symbolTable.DefinedType
Base?:         false
Undefined?:    false
isSimpleType?  false
Node:          [s:complexType: null]
Dims:
isOnlyLiteralReferenced: true
RefType:       null

org.apache.axis.wsdl.symbolTable.PortTypeEntry
QName:         {http://www.perseus.com/Pdc.WS}ProjectDataSoap
name:          com.perseus.www.Pdc_WS.ProjectDataSoap
isReferenced?  true

org.apache.axis.wsdl.symbolTable.BindingEntry
QName:         {http://www.perseus.com/Pdc.WS}ProjectDataSoap
name:          com.perseus.www.Pdc_WS.ProjectDataSoap
isReferenced?  true
dynamicVars:   interface name = com.perseus.www.Pdc_WS.ProjectDataSoap

org.apache.axis.wsdl.symbolTable.DefinedElement
QName:         {http://www.perseus.com/Pdc.WS}Login
name:          com.perseus.www.Pdc_WS.Login
isReferenced?  true
Class:         org.apache.axis.wsdl.symbolTable.DefinedElement
Base?:         false
Undefined?:    false
isSimpleType?  false
Node:          [s:element: null]
Dims:
isOnlyLiteralReferenced: true
RefType:
  QName:         {http://www.perseus.com/Pdc.WS}>Login
  name:          com.perseus.www.Pdc_WS.Login
  isReferenced?  true
  Class:         org.apache.axis.wsdl.symbolTable.DefinedType
  Base?:         false
  Undefined?:    false
  isSimpleType?  false
  Node:          [s:complexType: null]
  Dims:
  isOnlyLiteralReferenced: true
  RefType:       null


org.apache.axis.wsdl.symbolTable.DefinedType
QName:         {http://www.perseus.com/Pdc.WS}>LoginResponse
name:          com.perseus.www.Pdc_WS.LoginResponse
isReferenced?  true
Class:         org.apache.axis.wsdl.symbolTable.DefinedType
Base?:         false
Undefined?:    false
isSimpleType?  false
Node:          [s:complexType: null]
Dims:
isOnlyLiteralReferenced: true
RefType:       null

org.apache.axis.wsdl.symbolTable.BaseType
QName:         {http://www.w3.org/2001/XMLSchema}string
name:          java.lang.String
isReferenced?  true
Class:         org.apache.axis.wsdl.symbolTable.BaseType
Base?:         true
Undefined?:    false
isSimpleType?  false
Node:          null
Dims:
isOnlyLiteralReferenced: false
RefType:       null

-----------------------

and the Client Stub code generated is
/**
 * ProjectDataSoapStub.java
 *
 * This file was auto-generated from WSDL
 * by the Apache Axis 1.4 Oct 05, 2007 (08:49:00 EDT) WSDL2Java emitter.
 */

package com.perseus.www.Pdc_WS;

public class ProjectDataSoapStub extends org.apache.axis.client.Stub
implements com.perseus.www.Pdc_WS.ProjectDataSoap {
    private java.util.Vector cachedSerClasses = new java.util.Vector();
    private java.util.Vector cachedSerQNames = new java.util.Vector();
    private java.util.Vector cachedSerFactories = new java.util.Vector();
    private java.util.Vector cachedDeserFactories = new java.util.Vector();

    static org.apache.axis.description.OperationDesc [] _operations; //note
the initial declaration is an open array

    static {
        _operations = new org.apache.axis.description.OperationDesc[1];
//here is our initialisation for operations
        _initOperationDesc1();
    }

    private static void _initOperationDesc1()
  {
        org.apache.axis.description.OperationDesc oper;
        org.apache.axis.description.ParameterDesc param;
        oper = new org.apache.axis.description.OperationDesc();
        oper.setName("Login");

//Note the OperationDesc can have multiple parameters
        param = new org.apache.axis.description.ParameterDesc(new
javax.xml.namespace.QName("http://www.perseus.com/Pdc.WS";, "userName"),
org.apache.axis.description.ParameterDesc.IN, new
javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema";, "string"),
java.lang.String.class, false, false);
        param.setOmittable(true);
        oper.addParameter(param);

        param = new org.apache.axis.description.ParameterDesc(new
javax.xml.namespace.QName("http://www.perseus.com/Pdc.WS";, "password"), org.
apache.axis.description.ParameterDesc.IN, new
javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema";, "string"),
java.lang.String.class, false, false);
        param.setOmittable(true);
        oper.addParameter(param);
        oper.setReturnType(new
javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema";, "string"));
        oper.setReturnClass(java.lang.String.class);
        oper.setReturnQName(new
javax.xml.namespace.QName("http://www.perseus.com/Pdc.WS";, "LoginResult"));
        oper.setStyle(org.apache.axis.constants.Style.WRAPPED);
        oper.setUse(org.apache.axis.constants.Use.LITERAL);
        _operations[0] = oper;  //Here is the initialisation for
operations[0] (which will be invoked later on in client stub)

    }

    public ProjectDataSoapStub() throws org.apache.axis.AxisFault
   {
         this(null);
    }

    public ProjectDataSoapStub(java.net.URL endpointURL,
javax.xml.rpc.Service service) throws org.apache.axis.AxisFault
   {
         this(service);
         super.cachedEndpoint = endpointURL;
    }

    public ProjectDataSoapStub(javax.xml.rpc.Service service) throws
org.apache.axis.AxisFault
   {
        if (service == null)
       {
            super.service = new org.apache.axis.client.Service();
        } else
       {
            super.service = service;
        }

((org.apache.axis.client.Service)super.service).setTypeMappingVersion("1.2")
;
    }

    protected org.apache.axis.client.Call createCall() throws
java.rmi.RemoteException {
        try
        {
            org.apache.axis.client.Call _call = super._createCall();

//take care of housekeeping operations such as acquiring session as well as
the username/password and EPR
            if (super.maintainSessionSet) {
                _call.setMaintainSession(super.maintainSession);
            }
            if (super.cachedUsername != null) {
                _call.setUsername(super.cachedUsername);
            }
            if (super.cachedPassword != null) {
                _call.setPassword(super.cachedPassword);
            }
            if (super.cachedEndpoint != null) {
                _call.setTargetEndpointAddress(super.cachedEndpoint);
            }
            if (super.cachedTimeout != null) {
                _call.setTimeout(super.cachedTimeout);
            }
            if (super.cachedPortName != null) {
                _call.setPortName(super.cachedPortName);
            }
            java.util.Enumeration keys = super.cachedProperties.keys();
            while (keys.hasMoreElements()) {
                java.lang.String key = (java.lang.String)
keys.nextElement();
                _call.setProperty(key, super.cachedProperties.get(key));
            }

//I have more stuff here!
synchronized (this) {
                if (firstCall()) {
                    // must set encoding style before registering serializers
                    _call.setEncodingStyle(null);
                    for (int i = 0; i < cachedSerFactories.size(); ++i) {
                        java.lang.Class cls = (java.lang.Class) 
cachedSerClasses.get(i);
                        javax.xml.namespace.QName qName =
                                (javax.xml.namespace.QName) 
cachedSerQNames.get(i);
                        java.lang.Object x = cachedSerFactories.get(i);
                        if (x instanceof Class) {
                            java.lang.Class sf = (java.lang.Class)
                                 cachedSerFactories.get(i);
                            java.lang.Class df = (java.lang.Class)
                                 cachedDeserFactories.get(i);
                            _call.registerTypeMapping(cls, qName, sf, df, 
false);
                        }
                        else if (x instanceof 
javax.xml.rpc.encoding.SerializerFactory) {
                            org.apache.axis.encoding.SerializerFactory sf = 
(org.apache.axis.encoding.SerializerFactory)
                                 cachedSerFactories.get(i);
                            org.apache.axis.encoding.DeserializerFactory df = 
(org.apache.axis.encoding.DeserializerFactory)
                                 cachedDeserFactories.get(i);
                            _call.registerTypeMapping(cls, qName, sf, df, 
false);
                        }
                    }
                }
            }
            return _call;
        }
        catch (java.lang.Throwable _t) {
            throw new org.apache.axis.AxisFault("Failure trying to get the
Call object", _t);
        }
    }

//Main point of divergence between your client and mine..
    public java.lang.String login(java.lang.String userName,
java.lang.String password) throws java.rmi.RemoteException {
        if (super.cachedEndpoint == null) {
            throw new org.apache.axis.NoEndPointException();
        }
        org.apache.axis.client.Call _call = createCall();
        _call.setOperation(_operations[0]);       //references the first
operation and NOT the 44th..!!!!
        _call.setUseSOAPAction(true);
        _call.setSOAPActionURI("http://www.perseus.com/Pdc.WS/Login";);
        _call.setEncodingStyle(null);
        _call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR,
Boolean.FALSE);
        _call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS,
Boolean.FALSE);

_call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
        _call.setOperationName(new
javax.xml.namespace.QName("http://www.perseus.com/Pdc.WS";, "Login"));

        setRequestHeaders(_call);
        setAttachments(_call);
 try {        java.lang.Object _resp = _call.invoke(new java.lang.Object[]
{userName, password});

        if (_resp instanceof java.rmi.RemoteException) {
            throw (java.rmi.RemoteException)_resp;
        }
        else {
            extractAttachments(_call);
            try {
                return (java.lang.String) _resp;
            } catch (java.lang.Exception _exception) {
                return (java.lang.String)
org.apache.axis.utils.JavaUtils.convert(_resp, java.lang.String.class);
            }
        }
  } catch (org.apache.axis.AxisFault axisFaultException) {
  throw axisFaultException;
}
    }
}

There is some unknown delta in the 2 environments which I am not able to
understand why you have 44 operations instead of 1

M-

----- Original Message -----
From: "Callaway, Pamela" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Thursday, January 24, 2008 10:13 AM
Subject: RE: Webservice Client not working from inside Tomcat5


Hi, Thanks again for the responses.  I tried to attach the WSDL, but
apparently it's too big, so I'll just insert a snippet here.  Hopefully I
got the right parts!  I did not write it, it's from an outside vendor, so it
can't be changed.  Is it okay that the namespace and qname are not the same
as the target URL?

<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions xmlns:http="http://schemas.xmlsoap.org/wsdl/http/";
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/";
xmlns:s="http://www.w3.org/2001/XMLSchema";
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/";
xmlns:tns="http://www.perseus.com/Pdc.WS";
xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/";
xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/";
targetNamespace="http://www.perseus.com/Pdc.WS";
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/";>
  <wsdl:types>
    <s:schema elementFormDefault="qualified"
targetNamespace="http://www.perseus.com/Pdc.WS";>
      <s:import namespace="http://www.w3.org/2001/XMLSchema"/>
..
      <s:element name="Login">
        <s:complexType>
          <s:sequence>
            <s:element minOccurs="0" maxOccurs="1" name="userName"
type="s:string"/>
            <s:element minOccurs="0" maxOccurs="1" name="password"
type="s:string"/>
          </s:sequence>
        </s:complexType>
      </s:element>
      <s:element name="LoginResponse">
        <s:complexType>
          <s:sequence>
            <s:element minOccurs="0" maxOccurs="1" name="LoginResult"
type="s:string"/>
          </s:sequence>
        </s:complexType>
      </s:element>
    </s:schema>
..
  </wsdl:types>
..
  <wsdl:message name="LoginSoapIn">
    <wsdl:part name="parameters" element="tns:Login"/>
  </wsdl:message>
  <wsdl:message name="LoginSoapOut">
    <wsdl:part name="parameters" element="tns:LoginResponse"/>
  </wsdl:message>
..
  <wsdl:portType name="ProjectDataSoap">
    <wsdl:operation name="Login">
      <documentation xmlns="http://schemas.xmlsoap.org/wsdl/";>Validate the
account credentials and establish a session. This must be called before any
other calls are made. Throws a SOAP Exception if login is
unsuccessful.</documentation>
      <wsdl:input message="tns:LoginSoapIn"/>
      <wsdl:output message="tns:LoginSoapOut"/>
    </wsdl:operation>
..
  </wsdl:portType>
..
<wsdl:binding name="ProjectDataSoap" type="tns:ProjectDataSoap">
    <soap:binding transport="http://schemas.xmlsoap.org/soap/http";
style="document"/>
..
<wsdl:operation name="Login">
      <soap:operation soapAction="http://www.perseus.com/Pdc.WS/Login";
style="document"/>
      <wsdl:input>
        <soap:body use="literal"/>
      </wsdl:input>
      <wsdl:output>
        <soap:body use="literal"/>
      </wsdl:output>
    </wsdl:operation>
..
  </wsdl:binding>
  <wsdl:service name="ProjectData">
    <documentation xmlns="http://schemas.xmlsoap.org/wsdl/";>Access to
surveys and profiles.</documentation>
    <wsdl:port name="ProjectDataSoap" binding="tns:ProjectDataSoap">
      <soap:address
location="http://myserver.edu/perseus/ws/projectdata.asmx"/>
    </wsdl:port>
  </wsdl:service>
</wsdl:definitions>

I used WSDL2java (Axis 1.4, what ships with Eclipse v. 3.3) to generate the=
 client, and it does look like the qname is set properly inside of the gene=
rated code.  You can also see where the soap action is set, and how it
matches the soap action in the WSDL. This is a snippet from the generated
stub:

   public java.lang.String login(java.lang.String userName, java.lang.String
password) throws java.rmi.RemoteException {
        if (super.cachedEndpoint =3D=3D null) {
            throw new org.apache.axis.NoEndPointException();
        }
        org.apache.axis.client.Call _call =3D createCall();
        _call.setOperation(_operations[44]);
        _call.setUseSOAPAction(true);
        _call.setSOAPActionURI("http://www.perseus.com/Pdc.WS/Login";);
        _call.setEncodingStyle(null);
        _call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR,
Boolean.FALSE);
        _call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS,
Boolean.FALSE);

_call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
        _call.setOperationName(new
javax.xml.namespace.QName("http://www.perseus.com/Pdc.WS";, "Login"));

        setRequestHeaders(_call);
        setAttachments(_call);
 try {        java.lang.Object _resp =3D _call.invoke(new java.lang.Object[]
{userName, password});

Thank you! (I really can't say that enough.)

Pam

-----Original Message-----
From: Martin Gainty [mailto:[EMAIL PROTECTED]
Sent: Wednesday, January 23, 2008 1:02 PM
To: [email protected]
Subject: Re: Webservice Client not working from inside Tomcat5

what version axis are you using?

you also need a valid epr and
 need a valid operation as qname ..

a qname consists of namespace and localpart hosts where
The namespace prefix, unless it is xml or xmlns, MUST have been declared in
a namespace declaration attribute such as
and localpart is element or attribute of the declared namespace and example
of which is
<x xmlns:edi='http://ecommerce.example.org/schema'>
  <!-- the "edi" prefix is bound to http://ecommerce.example.org/schema
       for the "x" element and contents -->
</x>

This comes from w3c.org doc located at
http://www.w3.org/TR/REC-xml-names/#dt-NSDecl

the Axis-1.4 test Client has this example:
         String endpoint =
                    "http://nagoya.apache.org:5049/axis/services/echo";;
           Service  service = new Service();
           Call     call    = (Call) service.createCall();
           call.setTargetEndpointAddress( new java.net.URL(endpoint) );
           call.setOperationName(new QName("http://soapinterop.org/";,
"echoString") );

If you post the wsdl we can take a more comprehensive view of the generated
service and client-stub

Martin--
----- Original Message -----
From: "Maicon Stihler" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Wednesday, January 23, 2008 12:21 PM
Subject: Re: Webservice Client not working from inside Tomcat5


> I remember having a similar problem in the past... I'm not sure if it
> is the same, but try setting up the Action header on your client to
> match that of your target web service (eg.
> options.setAction("urn:yourservice") ) and make sure it is the same
> that is on your service.xml.
>
> I think it has something to do with ws-addressing.
>
> Best Regards
>
> 2008/1/23, Callaway, Pamela <[EMAIL PROTECTED]>:
> > I turned up the logging to debug level, and now I see an exception in
the log:
> > - Enter: Call::invoke()
> > - MessageContext: setTargetService(ProjectDataSoap)
> > - org.apache.axis.i18n.resource::handleGetObject(noService10)
> > - Exception:
> > org.apache.axis.ConfigurationException: No service named ProjectDataSoap
is available
> > org.apache.axis.ConfigurationException: No service named ProjectDataSoap
is available
> >         at
org.apache.axis.configuration.FileProvider.getService(FileProvider.java:233)
> >         at org.apache.axis.AxisEngine.getService(AxisEngine.java:311)
> >         at
org.apache.axis.MessageContext.setTargetService(MessageContext.java:756)
> >         at org.apache.axis.client.Call.invoke(Call.java:2690)
> >         at org.apache.axis.client.Call.invoke(Call.java:2443)
> >         at org.apache.axis.client.Call.invoke(Call.java:2366)
> >         at org.apache.axis.client.Call.invoke(Call.java:1812)
> >         at
com.xxx.www.projectdata.ProjectDataSoapStub.login(ProjectDataSoapStub.java:2
981)
> >
> > Is there something else I need to configure when trying to call the
client
> > from a JSP?  This doesn't happen when I run the JUnit test on the
client.
> >
> > Thank you!
> >
> > Pam
> >
> > -----Original Message-----
> > From: Callaway, Pamela [mailto:[EMAIL PROTECTED]
> > Sent: Wednesday, January 23, 2008 11:17 AM
> > To: [email protected]
> > Subject: RE: Webservice Client not working from inside Tomcat5
> >
> > Hi, thanks for the response.  Tomcat is running as a service.  I'm not
seeing any errors in the Tomcat logs, nor am I getting any RemoteExceptions
or ServiceExceptions.  I just get back a null response from the call.  I was
able to step through in a debugger and inside the generated WSDL client as
far as the stub, and the stub gets a response that is null.   The IDs come
in okay, as far as I can tell, and when I run this locally as a JUnit test
it works...  This is the generated stub - _resp just comes back null.
> >
> > public com.xxx.www.projectdata.GetResponseResponseGetResponseResult
getResponse(int projectId, long recordId) throws java.rmi.RemoteException {
> >         if (super.cachedEndpoint == null) {
> >             throw new org.apache.axis.NoEndPointException();
> >         }
> >         org.apache.axis.client.Call _call = createCall();
> >         _call.setOperation(_operations[20]);
> >         _call.setUseSOAPAction(true);
> >         _call.setSOAPActionURI("http://www.xxx.com/Pdc.WS/GetResponse";);
> >         _call.setEncodingStyle(null);
> >         _call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR,
Boolean.FALSE);
> >         _call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS,
Boolean.FALSE);
> >
_call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
> >         _call.setOperationName(new
javax.xml.namespace.QName("http://www.xxx.com/Pdc.WS";, "GetResponse"));
> >
> >         setRequestHeaders(_call);
> >         setAttachments(_call);
> >  try {        java.lang.Object _resp = _call.invoke(new
java.lang.Object[] {new java.lang.Integer(projectId), new
java.lang.Long(recordId)});
> >
> >         if (_resp instanceof java.rmi.RemoteException) {
> >             throw (java.rmi.RemoteException)_resp;
> >         }
> >         else {
> >             extractAttachments(_call);
> >             try {
> >                 return
(com.xxx.www.projectdata.GetResponseResponseGetResponseResult) _resp;
> >             } catch (java.lang.Exception _exception) {
> >                 return
(com.xxx.www.projectdata.GetResponseResponseGetResponseResult)
org.apache.axis.utils.JavaUtils.convert(_resp,
com.xxx.www.projectdata.GetResponseResponseGetResponseResult.class);
> >             }
> >         }
> >   } catch (org.apache.axis.AxisFault axisFaultException) {
> >   throw axisFaultException;
> > }
> >
> > -----Original Message-----
> > From: news [mailto:[EMAIL PROTECTED] On Behalf Of Stephen Souness
> > Sent: Sunday, January 20, 2008 4:20 PM
> > To: [email protected]
> > Subject: Re: Webservice Client not working from inside Tomcat5
> >
> > Is there anything showing up in Tomcat's logs?
> >
> > Is the Tomcat process running as a service, or as a user that may not be
> > able to establish network connections?
> >
> > Are all of the jars that the web service client requires included in
> > your web app?
> >
> >
> > --
> > Stephen
> >
> >
> > Callaway, Pamela wrote:
> > > Hi folks,
> > >
> > >
> > >
> > > I am encountering a strange problem with my webservice client that I
> > > generated using wsdl2java.  It works fine from the command line or as
a
> > > JUnit test, but when I try and use it from a JSP file, it doesn't
return
> > > a result.  Exactly the same code, no differences that I can find,
except
> > > that I want to call it from the JSP and not a JUnit test case.
> > >
> > >
> > >
> > >  I am using Tomcat5 and Java 1.5, doing my development work on a
windows
> > > box.  I wrapped the webservice up into a JAR file, which I'm then
> > > including in the web project, and I made a simple helper class so that
I
> > > could use exactly the same code to call the webservice from the JUnit
> > > test cases or from the JSP.
> > >
> > >


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to