__________________

Hi,  Axis to .Net service

I am trying to get axis cleint to talk to a .net service.  IT would appear that the service expects a document as the message parameter.  however.  all the data i want to put in is generated as a string.  Thsi strign is xml data.  What i want is for axis to simply print this out with out axis escapign the XML.  So i adapted the simpleSerializer class to jsut write out the sting.  registered it in the typemapping register.  To my amazement it works well it did once/twice.  Since then it has stoped working.  I register my object in the typemappign regitry with my serialiser.  and it now throws up - cannot find mapping error - how can this be as there is a mapping registered.  




ConfirmOperationRequest requ = new ConfirmOperationRequest();
            requ.setOperationName(ConfirmOperationRequest.OPERATION_GETENQUIRYLOOKUPS);

            ConfirmAuthentication auth = new ConfirmAuthentication("CRM", "abcd", "Play Db");
            ConfirmRequest req = new ConfirmRequest(auth, requ);

            Service s = new Service();

              TypeMappingRegistry tmr = s.getTypeMappingRegistry();
              System.out.println(tmr);
              TypeMapping tm = tmr.createTypeMapping() ;
             
              tm.register(ConfirmRequest.class,XMLType.XSD_ANY,new SimpleSerializerFactory(ConfirmRequest.class,XMLType.XSD_ANY),new SimpleDeserializerFactory(ConfirmRequest.class,XMLType.XSD_ANY));
             
              tmr.register(XMLType.XSD_ANY.getNamespaceURI(),(TypeMapping) tm);
             
              s.setTypeMappingRegistry(tmr);  

            Call call = (Call) s.createCall();
            call.setTargetEndpointAddress(new URL("http://127.0.0.1/ConnectorWebService/ConfirmConnector.asmx"));
            call.setSOAPActionURI("http://www.confirm.co.uk/schema/am/connector/webservice/ProcessOperations");
            //QName op = new QName("http://www.confirm.co.uk/schema/am/connector/webservice/", "ProcessOperationsRequest");
            //call.setOperationName(op);
            call.setOperation("ProcessOperationsRequest");
            call.addParameter("Request", XMLType.XSD_ANY, ParameterMode.IN);

            call.setReturnType(XMLType.XSD_STRING);

            String out = (String) call.invoke(new Object[] { req });

            System.out.println(out);


[EMAIL PROTECTED]
11-Apr-2006 15:40:50 org.apache.axis.attachments.AttachmentsImpl getAttachmentCount
WARNING: Exception:
AxisFault
 faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
 faultSubcode:
 faultString: java.io.IOException: No serializer found for class gov.scc.adapter.confim.ConfirmRequest in registry [EMAIL PROTECTED]


Please Help

Chris  

*************************************************************

Any opinions expressed in this e-mail or any attached files
are those of the individual, and not necessarily those of
Shropshire County Council.

This e-mail and any attached files are confidential and
intended solely for the use of the addressee. This
communication may contain material protected by law from
being passed on. If you are not the intended recipient and
have received this e-mail in error, you are advised that any
use, dissemination, forwarding, printing, or copying of this
e-mail is strictly prohibited. If you have received this
e-mail in error, please notify the IT Technology Services
Manager at Shropshire County Council, telephone 01743 252131

[EMAIL PROTECTED]

http://www.shropshireonline.gov.uk

*************************************************************

Reply via email to