globalterminal
asked on
SOAP ERROR classic ASP
i have ASP program that I am trying to get to pass XML to an APACHE java webservice.
I am getting an errors from the apex log.
What do you this error means? It seems like it might related to the structure of the envelope. Any help is greatly appreciated
2011-03-04 15:05:12,004 WARN [http-9080-10 ] [LoggerListener:60] ( ) Authentication event AuthenticationSuccessEvent : n4api; details:
Authentication Details: SessionType= SessionTypeEnum[ws]
2011-03-04 15:05:12,005 WARN [http-9080-10 ] [LoggerListener:60] ( ) Authentication event AuthenticationSuccessEvent : n4api; details:
Authentication Details: SessionType= SessionTypeEnum[ws]
2011-03-04 15:05:12,123 WARN [http-9080-10 ] [GenericWebServiceMessageU tils:75] ( ) Problem with web service invocation: Error: No xml message has been defined!
I am getting an errors from the apex log.
What do you this error means? It seems like it might related to the structure of the envelope. Any help is greatly appreciated
2011-03-04 15:05:12,004 WARN [http-9080-10 ] [LoggerListener:60] ( ) Authentication event AuthenticationSuccessEvent
Authentication Details: SessionType= SessionTypeEnum[ws]
2011-03-04 15:05:12,005 WARN [http-9080-10 ] [LoggerListener:60] ( ) Authentication event AuthenticationSuccessEvent
Authentication Details: SessionType= SessionTypeEnum[ws]
2011-03-04 15:05:12,123 WARN [http-9080-10 ] [GenericWebServiceMessageU
SOAPParameters = "<submit-transaction xmlns:xsi=""http://www.w3.org/2001/XMLSchema-instance"" xmlns:xsd=""http://www.w3.org/2001/XMLSchema"">"
SOAPParameters = SOAPParameters & "<gate-id xsi:type=""xsd:string"">GCT GATE</gate-id>"
SOAPParameters = SOAPParameters & "<stage-id xsi:type=""xsd:string"">INSPECTOUT</stage-id>"
SOAPParameters = SOAPParameters & "<truck-visit gos-tv-key=""20390"" />"
SOAPParameters = SOAPParameters & "<truck-transaction tran-key=""9390129"" tran-nbr=""3307""><container tran-type=""DM"" /></truck-transaction></submit-transaction>"
serviceUrl = "http://10.213.54.28:9080/apex/services/argoservice"
Set oXmlHTTP = CreateObject("Microsoft.XMLHTTP")
oXmlHTTP.Open "POST", serviceUrl, False
oXmlHTTP.setRequestHeader "Content-Type", "text/xml; charset=utf-8"
oXmlHTTP.setRequestHeader "Authorization", "Basic " & Base64Encode("xxxx:xxxx")
oXmlHTTP.setRequestHeader "SOAPAction","http://www.navis.com/services/argoservice"
SOAPRequest = "<?xml version='1.0' encoding='utf-8'?>"
SOAPRequest = SOAPRequest & "<soapenv:Envelope xmlns:soapenv=""http://schemas.xmlsoap.org/soap/envelope/"" xmlns:arg=""http://www.navis.com/services/argoservice"" xmlns:v1=""http://types.webservice.argo.navis.com/v1.0"">"
SOAPRequest = SOAPRequest & "<soapenv:Header></soapenv:Header>"
SOAPRequest = SOAPRequest & "<soapenv:Body>"
SOAPRequest = SOAPRequest & "<arg:genericInvoke><arg:scopeCoordinateIdsWsType>"
SOAPRequest = SOAPRequest & "<v1:operatorId>GCT</v1:operatorId>"
SOAPRequest = SOAPRequest & "<v1:complexId>GCTUSA</v1:complexId>"
SOAPRequest = SOAPRequest & "<v1:facilityId>BAYONNE</v1:facilityId>"
SOAPRequest = SOAPRequest & "<v1:yardId>GLO</v1:yardId>"
SOAPRequest = SOAPRequest & "</arg:scopeCoordinateIdsWsType>"
SOAPRequest = SOAPRequest & "</arg:genericInvoke>"
SOAPRequest = SOAPRequest & trim(SOAPParameters)
SOAPRequest = SOAPRequest & "</soapenv:Body>"
SOAPRequest = SOAPRequest & "</soapenv:Envelope>"
oXmlHTTP.send SOAPRequest
SOAPResponse = oXmlHTTP.responseXML.xml
ASKER
if i change the <?xml statement to this:
<?xml version='1.0' encoding='utf-8'?><soapenv :Envelope xmlns:soapenv="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:v1="http://types.webservice.argo.navis.com/v1.0">
now i get this error:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Header>
<soapenv:Upgrade soapenv:actor="http://schemas.xmlsoap.org/soap/actor/next" soapenv:mustUnderstand="0" >
<soapenv:SupportedEnvelope qname="soapenv:Envelope"/>
</soapenv:Upgrade>
</soapenv:Header>
<soapenv:Body>
<soapenv:Fault>
<faultcode>soapenv:Version Mismatch</ faultcode>
<faultstring>Version Mismatch</faultstring>
<detail>
<ns1:hostname xmlns:ns1="http://xml.apache.org/axis/">glt-ti2</ns1: hostname>
</detail>
</soapenv:Fault>
</soapenv:Body>
</soapenv:Envelope>
<?xml version='1.0' encoding='utf-8'?><soapenv
now i get this error:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Header>
<soapenv:Upgrade soapenv:actor="http://schemas.xmlsoap.org/soap/actor/next" soapenv:mustUnderstand="0"
<soapenv:SupportedEnvelope
</soapenv:Upgrade>
</soapenv:Header>
<soapenv:Body>
<soapenv:Fault>
<faultcode>soapenv:Version
<faultstring>Version Mismatch</faultstring>
<detail>
<ns1:hostname xmlns:ns1="http://xml.apache.org/axis/">glt-ti2</ns1:
</detail>
</soapenv:Fault>
</soapenv:Body>
</soapenv:Envelope>
ASKER
ok...if use the following xml thru SOAPUI:
<?xml version='1.0' encoding='utf-8'?><soapenv :Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:arg="http://www.navis.com/services/argobasicservice" xmlns:v1="http://types.webservice.argo.navis.com/v1.0">
<soapenv:Header></soapenv: Header><so apenv:Body >
<arg:genericInvoke><arg:sc opeCoordin ateIdsWsTy pe>
<v1:operatorId>GCT</v1:ope ratorId><v 1:complexI d>GCTUSA</ v1:complex Id>
<v1:facilityId>BAYONNE</v1 :facilityI d><v1:yard Id>GLO</v1 :yardId>
</arg:scopeCoordinateIdsWs Type></arg :genericIn voke>
<submit-transaction xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<gate-id xsi:type="xsd:string">GCT GATE</gate-id><stage-id xsi:type="xsd:string">INSP ECTOUT</st age-id>
<truck-visit gos-tv-key="20390" /><truck-transaction tran-key="9390129" tran-nbr="3307"><container tran-type="DM" />
</truck-transaction></subm it-transac tion></soa penv:Body> </soapenv: Envelope>
i get a different error:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Body>
<genericInvokeResponse xmlns="http://www.navis.com/services/argobasicservice">
<ns1:genericInvokeResponse xmlns:ns1="http://www.navis.com/services/argoservice">
<ns2:commonResponse xmlns:ns2="http://types.webservice.argo.navis.com/v1.0">
<ns2:Status>3</ns2:Status>
<ns2:StatusDescription>Sev ere errors occurred, check message.</ns2:StatusDescri ption>
<ns2:MessageCollector>
<ns2:Messages>
<ns2:Message>Error: No xml message has been defined!</ns2:Message>
<ns2:SeverityLevel>SEVERE< /ns2:Sever ityLevel>
</ns2:Messages>
</ns2:MessageCollector>
</ns2:commonResponse>
<ns3:responsePayLoad xmlns:ns3="http://types.webservice.argo.navis.com/v1.0"><![CDATA[<upd ate-status >
<document-update status="REJECTED" >Error: No xml message has been defined!</document-update >
<entity-updates amount-successful="0" amount-failed="0" amount-not-found="0">
</entity-updates>
</update-status>]]></ns3:r esponsePay Load>
</ns1:genericInvokeRespons e>
</genericInvokeResponse>
</soapenv:Body>
</soapenv:Envelope>
<?xml version='1.0' encoding='utf-8'?><soapenv
<soapenv:Header></soapenv:
<arg:genericInvoke><arg:sc
<v1:operatorId>GCT</v1:ope
<v1:facilityId>BAYONNE</v1
</arg:scopeCoordinateIdsWs
<submit-transaction xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<gate-id xsi:type="xsd:string">GCT GATE</gate-id><stage-id xsi:type="xsd:string">INSP
<truck-visit gos-tv-key="20390" /><truck-transaction tran-key="9390129" tran-nbr="3307"><container
</truck-transaction></subm
i get a different error:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Body>
<genericInvokeResponse xmlns="http://www.navis.com/services/argobasicservice">
<ns1:genericInvokeResponse
<ns2:commonResponse xmlns:ns2="http://types.webservice.argo.navis.com/v1.0">
<ns2:Status>3</ns2:Status>
<ns2:StatusDescription>Sev
<ns2:MessageCollector>
<ns2:Messages>
<ns2:Message>Error: No xml message has been defined!</ns2:Message>
<ns2:SeverityLevel>SEVERE<
</ns2:Messages>
</ns2:MessageCollector>
</ns2:commonResponse>
<ns3:responsePayLoad xmlns:ns3="http://types.webservice.argo.navis.com/v1.0"><![CDATA[<upd
<document-update status="REJECTED" >Error: No xml message has been defined!</document-update >
<entity-updates amount-successful="0" amount-failed="0" amount-not-found="0">
</entity-updates>
</update-status>]]></ns3:r
</ns1:genericInvokeRespons
</genericInvokeResponse>
</soapenv:Body>
</soapenv:Envelope>
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Body>
<soapenv:Fault>
<faultcode>soapenv:Server.
<faultstring>org.xml.sax.S
<detail>
<ns1:stackTrace xmlns:ns1="http://xml.apache.org/axis/">org.xml.sax.S
at org.apache.axis.encoding.s
at org.apache.axis.encoding.D
at org.apache.axis.message.SA
at org.apache.axis.message.Me
at org.apache.axis.message.RP
at org.apache.axis.message.RP
at org.apache.axis.providers.
at org.apache.axis.providers.
at org.apache.axis.strategies
at org.apache.axis.SimpleChai
at org.apache.axis.SimpleChai
at org.apache.axis.handlers.s
at org.apache.axis.server.Axi
at org.apache.axis.transport.
at javax.servlet.http.HttpSer
at org.apache.axis.transport.
at javax.servlet.http.HttpSer
at org.apache.catalina.core.A
at org.apache.catalina.core.A
at org.apache.catalina.core.S
at org.apache.catalina.core.S
at org.apache.catalina.authen
at org.apache.catalina.core.S
at org.apache.catalina.valves
at org.apache.catalina.core.S
at org.apache.catalina.connec
at org.apache.coyote.http11.H
at org.apache.coyote.http11.H
at org.apache.tomcat.util.net
at java.lang.Thread.run(Threa
<ns2:hostname xmlns:ns2="http://xml.apache.org/axis/">glt-ti2</ns2:
</detail>
</soapenv:Fault>
</soapenv:Body>
</soapenv:Envelope>