Ketan, I guess, axis source  is attached.Pls find the attached SOAPBIindingStub. Pls go throught and let me know.

jsri

On 11/23/05, Ketan Deshpande <[EMAIL PROTECTED]> wrote:
If you are running Windows, You can use Ethereal or other n/w analyzers to look
at the traffic going to/from the server. You can also use other SOAP analyzers
- see Mindreef Soapscope and other such programs. http://www.soapui.org/

You can still debug the client side - you need to attach the axis source when
you want to step into _call.invoke.

If you want to test whether the SOAP service is coded properly - you can try
other tools that can independently test the web service.

This may be overkill for the problem you are facing - but that's what I can
think of, right now... :-)

-K

--- jsri < [EMAIL PROTECTED]> wrote:

> Hi Ketan,
>
> Thanks for responding. I generated the java classes and stub using axis. App
> server is not running on my box.  I'm developing client code to access
> webservice. Can i still install, try running the tcpmon to check  SOAP
> req/res.
>
> Thanks,
> jsri
>
>
>
>
>
>
> i checked the SOAP response
>
>
> On 11/22/05, Ketan Deshpande <[EMAIL PROTECTED]> wrote:
> >
> > Can you look at the SOAP response - use tcpmon or some other n/w sniffer
> > to
> > actually look at the SOAP request/response between client and server?
> >
> > The other way to debug that I can think of is to debug the call.invoke -
> > download the source for 1.3 and step thru...
> >
> > -K
> >
> > --- jsri <[EMAIL PROTECTED]> wrote:
> >
> > > Thanks for responding. yes, bean mappings are defined.
> > >
> > > On 11/22/05, Developer Developer <[EMAIL PROTECTED]> wrote:
> > > >
> > > > you have defined the bean mappings required for serialization and
> > > > deserialization at the server and client side ?
> > > >
> > > >
> > > >  On 11/21/05, jsri <[EMAIL PROTECTED]> wrote:
> > > > >
> > > > >
> > > > >  Hello all
> > > > > >
> > > > > > I'm a newbie to webservices. I'm trying to consume webservices.
> > I'm
> > > > > > using axis1.3 ,Eclipse IDE. Using axis i got the java & stub
> > classes
> > > > > > generated. I'm able to receive string literals from webservice.
> > Problem
> > > > > > comes with objects..bean. This is the scenairo of the
> > > application...When i
> > > > > > send an Patient ID to the webservices it returns demographic
> > > information
> > > > > > related to the Patient ID.
> > > > > >
> > > > > > (a) Query record -method returns Patient record for the requested
> > > > > > Patient-MPI ID
> > > > > > 1. I sent an invalid MPI ID. I got msg from webservice- "MPI ID
> > > > > > doesn't exists" .
> > > > > > 2.When i send the existing MPI ID i get ClassCastException.
> > > > >
> > > > >
> > > > > It show the error at call.invoke().I tried using the same jar files
> > used
> > > > > > by the webservice provider to generate java calsses &stubs.still
> > got
> > > the
> > > > > > same errors. I attached wsdl and soapbindingstub class.I'm pasting
> > the
> > > > > > code snippets&stack trace below.
> > > > > >
> > > > > > Generated SoapBindingStub.java
> > > > > > *****************************************************************
> > > > > > public com.stchome.mpi.MPIQueryReply
> queryRecord(java.lang.Stringin0,
> > > > > > long in1) 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]);
> > > > > > _call.setUseSOAPAction(true);
> > > > > > _call.setSOAPActionURI("");
> > > > > > _call.setSOAPVersion(
> > > > > > org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
> > > > > > _call.setOperationName(new javax.xml.namespace.QName("urn:mpi",
> > > > > > "queryRecord"));
> > > > > >
> > > > > > setRequestHeaders(_call);
> > > > > >  setAttachments(_call);
> > > > > >
> > > > > > try {
> > > > > >
> > > > > > java.lang.Object _resp = _call.invoke(new java.lang.Object []
> > {in0,
> > > > > > new java.lang.Long(in1)});
> > > > > >
> > > > > > if (_resp instanceof java.rmi.RemoteException) {
> > > > > > throw (java.rmi.RemoteException )_resp;
> > > > > > }
> > > > > > else {
> > > > > > extractAttachments(_call);
> > > > > > try {
> > > > > > return ( com.stchome.mpi.MPIQueryReply) _resp;
> > > > > > }
> > > > > > catch (java.lang.Exception _exception) {
> > > > > > return (com.stchome.mpi.MPIQueryReply)
> > > > > > org.apache.axis.utils.JavaUtils.convert(_resp,
> > > > > > com.stchome.mpi.MPIQueryReply.class);
> > > > > > }
> > > > > > }
> > > > > > } catch (org.apache.axis.AxisFault axisFaultException) {
> > > > > > throw axisFaultException;
> > > > > > }
> > > > > >
> > > > > > }
> > > > > > *****************************************************************
> > > > > > ClientTest.java Query Record
> > > > > > ******************************************************************
> > > > > > public void QueryMPI() throws Exception {
> > > > > >
> > > > > > java.lang.String in0String = new String("system"); //mpi user
> > > > > > long in1Long = 17831;
> > > > > >
> > > > > > try{
> > > > > >
> > > > > > MPIServiceLocator temp = new MPIServiceLocator();
> > > > > > MPI mpi = temp.getMPI();
> > > > > >
> > > > > > com.stchome.mpi.MPIQueryReply x = mpi.queryRecord
> > (in0String,in1Long);
> > > > > >
> > > > >
> > > > >   System.out.println((x.getRecord()).getFirstName());
> > > > > >
> > > > > > System.out.println("Status : " + x.getStatus ());
> > > > > > System.out.println("Status String : " + x.getStatusString());
> > > > > > }
> > > > > >
> > > > > >
> > >
> >
> *****************************************************************************
> > > > > > AxisFault
> > > > > > faultCode: {
> > >
>
http://schemas.xmlsoap.org/soap/envelope/}Server.userException <http://schemas.xmlsoap.org/soap/envelope/%7DServer.userException>
> > > > > > < http://schemas.xmlsoap.org/soap/envelope/%7DServer.userException
> > >
> > > > > >  faultSubcode:
> > > > > > faultString: java.lang.ClassCastException
> > > > > > faultActor:
> > > > > > faultNode:
> > > > > > faultDetail:
> > > > > >  {
> >
>
http://xml.apache.org/axis/}stackTrace:java.lang.ClassCastException<http://xml.apache.org/axis/%7DstackTrace:java.lang.ClassCastException >
> > > > > > <
> > http://xml.apache.org/axis/%7DstackTrace:java.lang.ClassCastException>
> > > > > > at org.apache.axis.message.SOAPFaultBuilder.createFault (
> > > > > > SOAPFaultBuilder.java:222)
> > > > > > at org.apache.axis.message.SOAPFaultBuilder.endElement (
> > > > > > SOAPFaultBuilder.java:129)
> > > > > > at org.apache.axis.encoding.DeserializationContext.endElement (
> > > > > > DeserializationContext.java:1087)
> > > > > > at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown
> > > > > > Source)
> > > > > >  at
> > > org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement (Unknown
> > > > > > Source)
> > > > > > at
> > > > > >
> > >
> >
> >
>
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch
> > (Unknown
> > > Source)
> > > > > > at
> > > org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument
> > (Unknown
> > > > > > Source)
> > > > > > at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
> > Source)
> > > > > > at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown
> > Source)
> > > > > > at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
> > > > > > at org.apache.xerces.parsers.AbstractSAXParser.parse (Unknown
> > Source)
> > > > > > at javax.xml.parsers.SAXParser.parse(SAXParser.java:345)
> > > > > > at org.apache.axis.encoding.DeserializationContext.parse(
> > > > > > DeserializationContext.java :227)
> > > > > > at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java :696)
> > > > > > at org.apache.axis.Message.getSOAPEnvelope(Message.java:435)
> > > > > > at org.apache.axis.handlers.soap.MustUnderstandChecker.invoke (
> > > > > > MustUnderstandChecker.java:62)
>
=== message truncated ===


Ketan Deshpande
[EMAIL PROTECTED]




__________________________________
Yahoo! Mail - PC Magazine Editors' Choice 2005
http://mail.yahoo.com

/**
 * MPISoapBindingStub.java
 *
 * This file was auto-generated from WSDL
 * by the Apache Axis 1.3 Oct 05, 2005 (05:23:37 EDT) WSDL2Java emitter.
 */

package mpi;

public class MPISoapBindingStub extends org.apache.axis.client.Stub implements mpi.MPI {
    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;

    static {
        _operations = new org.apache.axis.description.OperationDesc[3];
        _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("queryRecord");
        param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("", "in0"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema";, "string"), java.lang.String.class, false, false);
        oper.addParameter(param);
        param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("", "in1"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema";, "long"), long.class, false, false);
        oper.addParameter(param);
        oper.setReturnType(new javax.xml.namespace.QName("http://mpi.stchome.com";, "MPIQueryReply"));
        oper.setReturnClass(com.stchome.mpi.MPIQueryReply.class);
        oper.setReturnQName(new javax.xml.namespace.QName("", "queryRecordReturn"));
        oper.setStyle(org.apache.axis.constants.Style.RPC);
        oper.setUse(org.apache.axis.constants.Use.ENCODED);
        _operations[0] = oper;

        oper = new org.apache.axis.description.OperationDesc();
        oper.setName("addUpdateRecord");
        param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("", "in0"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema";, "string"), java.lang.String.class, false, false);
        oper.addParameter(param);
        param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("", "in1"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://mpi.stchome.com";, "MPIRecord"), com.stchome.mpi.MPIRecord.class, false, false);
        oper.addParameter(param);
        oper.setReturnType(new javax.xml.namespace.QName("http://mpi.stchome.com";, "MPIAddUpdateReply"));
        oper.setReturnClass(com.stchome.mpi.MPIAddUpdateReply.class);
        oper.setReturnQName(new javax.xml.namespace.QName("", "addUpdateRecordReturn"));
        oper.setStyle(org.apache.axis.constants.Style.RPC);
        oper.setUse(org.apache.axis.constants.Use.ENCODED);
        _operations[1] = oper;

        oper = new org.apache.axis.description.OperationDesc();
        oper.setName("matchRecord");
        param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("", "in0"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema";, "string"), java.lang.String.class, false, false);
        oper.addParameter(param);
        param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("", "in1"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://mpi.stchome.com";, "MPIRecord"), com.stchome.mpi.MPIRecord.class, false, false);
        oper.addParameter(param);
        oper.setReturnType(new javax.xml.namespace.QName("urn:mpi", "MPIMatchReply"));
        oper.setReturnClass(mpi.MPIMatchReply.class);
        oper.setReturnQName(new javax.xml.namespace.QName("", "matchRecordReturn"));
        oper.setStyle(org.apache.axis.constants.Style.RPC);
        oper.setUse(org.apache.axis.constants.Use.ENCODED);
        _operations[2] = oper;

    }

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

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

    public MPISoapBindingStub(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");
            java.lang.Class cls;
            javax.xml.namespace.QName qName;
            javax.xml.namespace.QName qName2;
            java.lang.Class beansf = org.apache.axis.encoding.ser.BeanSerializerFactory.class;
            java.lang.Class beandf = org.apache.axis.encoding.ser.BeanDeserializerFactory.class;
            java.lang.Class enumsf = org.apache.axis.encoding.ser.EnumSerializerFactory.class;
            java.lang.Class enumdf = org.apache.axis.encoding.ser.EnumDeserializerFactory.class;
            java.lang.Class arraysf = org.apache.axis.encoding.ser.ArraySerializerFactory.class;
            java.lang.Class arraydf = org.apache.axis.encoding.ser.ArrayDeserializerFactory.class;
            java.lang.Class simplesf = org.apache.axis.encoding.ser.SimpleSerializerFactory.class;
            java.lang.Class simpledf = org.apache.axis.encoding.ser.SimpleDeserializerFactory.class;
            java.lang.Class simplelistsf = org.apache.axis.encoding.ser.SimpleListSerializerFactory.class;
            java.lang.Class simplelistdf = org.apache.axis.encoding.ser.SimpleListDeserializerFactory.class;
            qName = new javax.xml.namespace.QName("http://mpi.stchome.com";, "MPIAddUpdateReply");
            cachedSerQNames.add(qName);
            cls = com.stchome.mpi.MPIAddUpdateReply.class;
            cachedSerClasses.add(cls);
            cachedSerFactories.add(beansf);
            cachedDeserFactories.add(beandf);

            qName = new javax.xml.namespace.QName("http://mpi.stchome.com";, "MPIMatchResult");
            cachedSerQNames.add(qName);
            cls = com.stchome.mpi.MPIMatchResult.class;
            cachedSerClasses.add(cls);
            cachedSerFactories.add(beansf);
            cachedDeserFactories.add(beandf);

            qName = new javax.xml.namespace.QName("http://mpi.stchome.com";, "MPIQueryReply");
            cachedSerQNames.add(qName);
            cls = com.stchome.mpi.MPIQueryReply.class;
            cachedSerClasses.add(cls);
            cachedSerFactories.add(beansf);
            cachedDeserFactories.add(beandf);

            qName = new javax.xml.namespace.QName("http://mpi.stchome.com";, "MPIRecord");
            cachedSerQNames.add(qName);
            cls = com.stchome.mpi.MPIRecord.class;
            cachedSerClasses.add(cls);
            cachedSerFactories.add(beansf);
            cachedDeserFactories.add(beandf);

            qName = new javax.xml.namespace.QName("http://mpi.stchome.com";, "MPIStatusReply");
            cachedSerQNames.add(qName);
            cls = com.stchome.mpi.MPIStatusReply.class;
            cachedSerClasses.add(cls);
            cachedSerFactories.add(beansf);
            cachedDeserFactories.add(beandf);

            qName = new javax.xml.namespace.QName("http://mpi.stchome.com";, "MpiUserDefinedField");
            cachedSerQNames.add(qName);
            cls = com.stchome.mpi.MpiUserDefinedField.class;
            cachedSerClasses.add(cls);
            cachedSerFactories.add(beansf);
            cachedDeserFactories.add(beandf);

            qName = new javax.xml.namespace.QName("http://mpi.stchome.com";, "MpiUserDefinedProperty");
            cachedSerQNames.add(qName);
            cls = com.stchome.mpi.MpiUserDefinedProperty.class;
            cachedSerClasses.add(cls);
            cachedSerFactories.add(beansf);
            cachedDeserFactories.add(beandf);

            qName = new javax.xml.namespace.QName("urn:mpi", "ArrayOf_tns2_MPIMatchResult");
            cachedSerQNames.add(qName);
            cls = com.stchome.mpi.MPIMatchResult[].class;
            cachedSerClasses.add(cls);
            qName = new javax.xml.namespace.QName("http://mpi.stchome.com";, "MPIMatchResult");
            qName2 = null;
            cachedSerFactories.add(new org.apache.axis.encoding.ser.ArraySerializerFactory(qName, qName2));
            cachedDeserFactories.add(new org.apache.axis.encoding.ser.ArrayDeserializerFactory());

            qName = new javax.xml.namespace.QName("urn:mpi", "ArrayOf_tns2_MpiUserDefinedField");
            cachedSerQNames.add(qName);
            cls = com.stchome.mpi.MpiUserDefinedField[].class;
            cachedSerClasses.add(cls);
            qName = new javax.xml.namespace.QName("http://mpi.stchome.com";, "MpiUserDefinedField");
            qName2 = null;
            cachedSerFactories.add(new org.apache.axis.encoding.ser.ArraySerializerFactory(qName, qName2));
            cachedDeserFactories.add(new org.apache.axis.encoding.ser.ArrayDeserializerFactory());

            qName = new javax.xml.namespace.QName("urn:mpi", "ArrayOf_tns2_MpiUserDefinedProperty");
            cachedSerQNames.add(qName);
            cls = com.stchome.mpi.MpiUserDefinedProperty[].class;
            cachedSerClasses.add(cls);
            qName = new javax.xml.namespace.QName("http://mpi.stchome.com";, "MpiUserDefinedProperty");
            qName2 = null;
            cachedSerFactories.add(new org.apache.axis.encoding.ser.ArraySerializerFactory(qName, qName2));
            cachedDeserFactories.add(new org.apache.axis.encoding.ser.ArrayDeserializerFactory());

            qName = new javax.xml.namespace.QName("urn:mpi", "ArrayOf_xsd_string");
            cachedSerQNames.add(qName);
            cls = java.lang.String[].class;
            cachedSerClasses.add(cls);
            qName = new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema";, "string");
            qName2 = null;
            cachedSerFactories.add(new org.apache.axis.encoding.ser.ArraySerializerFactory(qName, qName2));
            cachedDeserFactories.add(new org.apache.axis.encoding.ser.ArrayDeserializerFactory());

            qName = new javax.xml.namespace.QName("urn:mpi", "MPIMatchReply");
            cachedSerQNames.add(qName);
            cls = mpi.MPIMatchReply.class;
            cachedSerClasses.add(cls);
            cachedSerFactories.add(beansf);
            cachedDeserFactories.add(beandf);

    }

    protected org.apache.axis.client.Call createCall() throws java.rmi.RemoteException {
        try {
            org.apache.axis.client.Call _call = super._createCall();
            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));
            }
            // All the type mapping information is registered
            // when the first call is made.
            // The type mapping information is actually registered in
            // the TypeMappingRegistry of the service, which
            // is the reason why registration is only needed for the first call.
            synchronized (this) {
                if (firstCall()) {
                    // must set encoding style before registering serializers
                    _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
                    _call.setEncodingStyle(org.apache.axis.Constants.URI_SOAP11_ENC);
                    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);
        }
    }

    public com.stchome.mpi.MPIQueryReply queryRecord(java.lang.String in0, long in1) 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]);
        _call.setUseSOAPAction(true);
        _call.setSOAPActionURI("");
        _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
        _call.setOperationName(new javax.xml.namespace.QName("urn:mpi", "queryRecord"));

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

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

    public com.stchome.mpi.MPIAddUpdateReply addUpdateRecord(java.lang.String in0, com.stchome.mpi.MPIRecord in1) throws java.rmi.RemoteException {
        if (super.cachedEndpoint == null) {
            throw new org.apache.axis.NoEndPointException();
        }
        org.apache.axis.client.Call _call = createCall();
        _call.setOperation(_operations[1]);
        _call.setUseSOAPAction(true);
        _call.setSOAPActionURI("");
        _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
        _call.setOperationName(new javax.xml.namespace.QName("urn:mpi", "addUpdateRecord"));

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

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

    public mpi.MPIMatchReply matchRecord(java.lang.String in0, com.stchome.mpi.MPIRecord in1) throws java.rmi.RemoteException {
        if (super.cachedEndpoint == null) {
            throw new org.apache.axis.NoEndPointException();
        }
        org.apache.axis.client.Call _call = createCall();
        _call.setOperation(_operations[2]);
        _call.setUseSOAPAction(true);
        _call.setSOAPActionURI("");
        _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
        _call.setOperationName(new javax.xml.namespace.QName("urn:mpi", "matchRecord"));

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

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

}



Reply via email to