Hi, I have been given the following example (unfortunately in .NET) that I need to use via SOAP.
I have read 2 books Java Web SErvices / Java and XML and spent 11 days trying to change it but do not even know where to start (I've only been doing Java etc for 3 months and am learning it all from books) I have been told by the people who created the .net version below that the interface made available is "CardPaymentRequestXML" Is there any way someone can help me get this into Apache SOAP please ? Is there anything else I would need that's not here? Many thanks in advance Neil ------------------------------------------------------------------------- .NET EXAMPLE: 'Create a reference to the SOAP client object Dim objSoapClient as SoapClient Set objSoapClient = New SoapClient ' String to hold Response [out] Dim strXMLResponse as string ' String to hold the complete payment request [in] Dim XMLCardPaymentRequest as String XMLCardPaymentRequest = "<Request xmlns='http://xxxxx.co.uk'><UserRef>I'm stuck</UserRefe></Request>" ' Initialise the soap client object with the WSDI, configuration files Call objSoapClient.mssoapinit ("http://xxxxx.co.uk/CardPaymentInterface.wsdl", "", "", "http://xxxxx.co.uk/CardPaymentInterface.wsml") ' call the CardPaymentRequest method strXMLResponse = objSoapClient.CardPaymentRequestXML(XML,CardPaymentRequest) ' Parse the returned XML Dim objXML as FreeThreadedDOMDocument40 Dim objNode as IXMLDOMNode Dim strStatus as string Set objXML = New FreeThreadedDOMDocument40 objXML.async = False objXML.loadXML strXMLResponse Set objNode = objXML.selectSingleNode("//Status") If (objNode Is Nothing) = False Then If Len(objNode.Text) > 0 Then strStatus = objNode.Text End If End If If strStatus = "0" Then ' Successful Else ' Failed End If --------------------------------------------------------- Scanning of this message and addition of this footer is performed by SurfControl SuperScout Email Filter software in conjunction with virus detection software. ---------------------------------------------------------