I have a request with SOAPUI, work good:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:webservice">
<soapenv:Header/>
<soapenv:Body>
<urn:Notificacion>
<as_xml_peticion><![CDATA[<G_PETICION>
<CABECERA>
<NOTIFICADOR>API</NOTIFICADOR>
</CABECERA>
</G_PETICION>]]>
</as_xml_peticion>
But when I make a Axis2 Webservice client java with WSDL:
String xml = <![CDATA[<G_PETICION>
<CABECERA>
<NOTIFICADOR>API</NOTIFICADOR>
</CABECERA>
</G_PETICION>]]>;
tnofication.setAs_xml_peticion(xml);
notification.setNotificacion(tnofication);
WebserviceStub.NotificacionResponse response = proxy.notificacion(notification);
the response is:
Connection has been shutdown: javax.net.ssl.SSLException: java.net.SocketException: Connection reset
What is the problem?
Related
I am using Wso2 EI 7.1.0, I implemented case like EI will get soap request that request will convert to json request then it will send to endpoint, from the endpoint EI will get json response that will convert to soap message again before responded to client. So here
Expected Response:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body>
<message>
<response>success</response>
</message>
</soapenv:Body>
</soapenv:Envelope>
Getting Response:
<message>
<response>success</response>
</message>
Here soap tags are missing , So please update.
Thanks,
Ajay Babu Maguluri.
Most likely you are sending WSO2 a request with Content-Type application/xml (implying plain XML) So it will respond with a plain xml message without Soap envelope. In Postman try to set the content-type to text/xml.
I'm trying to hit Fedex address validation api from postman using production credentials but getting authentication failed error in the response ..
There is no information related to production credentials in fedex api documentation.
I'm using the production EndPoint https://ws.fedex.com:443/web-services
Here is the request body
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:v4="http://fedex.com/ws/addressvalidation/v4">
<soapenv:Header/>
<soapenv:Body>
<v4:AddressValidationRequest>
<v4:WebAuthenticationDetail>
<v4:ParentCredential>
<v4:Key>PRODUCTION KEY</v4:Key>
<v4:Password>PRODUCTION PASSWORD</v4:Password>
</v4:ParentCredential>
<v4:UserCredential>
<v4:Key>PRODUCTION KEY</v4:Key>
<v4:Password>PRODUCTION PASSWORD</v4:Password>
</v4:UserCredential>
</v4:WebAuthenticationDetail>
<v4:ClientDetail>
<v4:AccountNumber>PRODUCTION ACCOUNT</v4:AccountNumber>
<v4:MeterNumber>PRODUCTION METER</v4:MeterNumber>
<v4:Localization>
<v4:LanguageCode>EN</v4:LanguageCode>
<v4:LocaleCode>EN</v4:LocaleCode>
</v4:Localization>
</v4:ClientDetail>
<v4:TransactionDetail>
<v4:CustomerTransactionId>AddressValidationRequest_v54534</v4:CustomerTransactionId>
<v4:Localization>
<v4:LanguageCode>EN</v4:LanguageCode>
<v4:LocaleCode>EN</v4:LocaleCode>
</v4:Localization>
</v4:TransactionDetail>
<v4:Version>
<v4:ServiceId>aval</v4:ServiceId>
<v4:Major>4</v4:Major>
<v4:Intermediate>0</v4:Intermediate>
<v4:Minor>0</v4:Minor>
</v4:Version>
<v4:AddressesToValidate>
<v4:ClientReferenceId>Shelby Drive</v4:ClientReferenceId>
<v4:Address>
<v4:StreetLines>1155 15th Street NW Suite 720 </v4:StreetLines>
<v4:City>Washington</v4:City>
<v4:StateOrProvinceCode>DC</v4:StateOrProvinceCode>
<v4:PostalCode>20005</v4:PostalCode>
<v4:UrbanizationCode>CO</v4:UrbanizationCode>
<v4:CountryCode>US</v4:CountryCode>
<v4:Residential>0</v4:Residential>
</v4:Address>
</v4:AddressesToValidate>
</v4:AddressValidationRequest>
</soapenv:Body>
</soapenv:Envelope>
Here is the response what m getting
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
<SOAP-ENV:Header/>
<SOAP-ENV:Body>
<v4:AddressValidationReply xmlns:v4="http://fedex.com/ws/addressvalidation/v4">
<v4:HighestSeverity xmlns:v4="http://fedex.com/ws/addressvalidation/v4">ERROR</v4:HighestSeverity>
<v4:Notifications xmlns:v4="http://fedex.com/ws/addressvalidation/v4">
<v4:Severity xmlns:v4="http://fedex.com/ws/addressvalidation/v4">ERROR</v4:Severity>
<v4:Source xmlns:v4="http://fedex.com/ws/addressvalidation/v4">prof</v4:Source>
<v4:Code xmlns:v4="http://fedex.com/ws/addressvalidation/v4">1000</v4:Code>
<v4:Message xmlns:v4="http://fedex.com/ws/addressvalidation/v4">Authentication Failed</v4:Message>
</v4:Notifications>
<v4:TransactionDetail xmlns:v4="http://fedex.com/ws/addressvalidation/v4">
<v4:CustomerTransactionId xmlns:v4="http://fedex.com/ws/addressvalidation/v4">AddressValidationRequest_v54534</v4:CustomerTransactionId>
<v4:Localization xmlns:v4="http://fedex.com/ws/addressvalidation/v4">
<v4:LanguageCode xmlns:v4="http://fedex.com/ws/addressvalidation/v4">EN</v4:LanguageCode>
<v4:LocaleCode xmlns:v4="http://fedex.com/ws/addressvalidation/v4">EN</v4:LocaleCode>
</v4:Localization>
</v4:TransactionDetail>
<v4:Version xmlns:v4="http://fedex.com/ws/addressvalidation/v4">
<v4:ServiceId xmlns:v4="http://fedex.com/ws/addressvalidation/v4">aval</v4:ServiceId>
<v4:Major xmlns:v4="http://fedex.com/ws/addressvalidation/v4">4</v4:Major>
<v4:Intermediate xmlns:v4="http://fedex.com/ws/addressvalidation/v4">0</v4:Intermediate>
<v4:Minor xmlns:v4="http://fedex.com/ws/addressvalidation/v4">0</v4:Minor>
</v4:Version>
</v4:AddressValidationReply>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
please help :(
<v4:Message xmlns:v4="http://fedex.com/ws/addressvalidation/v4">Authentication Failed</v4:Message>
Check you key, password, accountnumber, meternumber
I am experiencing an error calling WSO2 API Manager v2.1.0 Admin Services via soapUI. It seems that the requests that are changing state in API Manager like this one, addRole, are failing. Note that "read only" style requests like listAllUsers or getAllRolesNames are succeeding.
Here is the raw request from soapUI:
POST https://localhost:9443/services/UserAdmin.UserAdminHttpsSoap11Endpoint HTTP/1.1
Accept-Encoding: gzip,deflate
SOAPAction: "urn:addRole"
Authorization: Basic YWRtaW46YWRtaW4=
Content-Type: application/soap+xml
Content-Length: 283
Host: localhost:9443
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.1.1 (java 1.5)
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://org.apache.axis2/xsd">
<soapenv:Header/>
<soapenv:Body>
<xsd:addRole>
<xsd:roleName>test_role</xsd:roleName>
</xsd:addRole>
</soapenv:Body>
</soapenv:Envelope>
Here is the response form soapUI:
<soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope">
<soapenv:Header xmlns:wsa="http://www.w3.org/2005/08/addressing">
<wsa:Action>http://www.w3.org/2005/08/addressing/soap/fault</wsa:Action>
</soapenv:Header>
<soapenv:Body>
<soapenv:Fault>
<soapenv:Code>
<soapenv:Value>soapenv:VersionMismatch</soapenv:Value>
</soapenv:Code>
<soapenv:Reason>
<soapenv:Text xml:lang="en-US">Transport level information does not match with SOAP Message namespace URI</soapenv:Text>
</soapenv:Reason>
<soapenv:Detail/>
</soapenv:Fault>
</soapenv:Body>
</soapenv:Envelope>
Here is the log entry that appears in wso2carbon.log:
[2017-03-03 16:23:03,474] ERROR - ResponseTimeCalculator wso2statistics.request.received.time is null in the IN MessageContext
Any help is greatly appreciated.
Thanks!
Looks like your request is a SOAP 1.1.
In that case, the Content-Type of the request should be text/xml, not application/soap+xml.
If that doesn't work, try using RemoteUserStoreManagerService instead of UserAdmin.
I am working on a camel based cxf-webservice. I have to show all types of error messages in my responses which I am doing properly in my service layer. But if a request is invalidated still I was getting a correct response.
For the following type of request
<soapenv:Body>
...
<!--Optional:-->
<prod:CandidateMaximumQuantity/>
<!--Optional:-->
<prod:CandidatePerPageMaximumQuantity>100</prod:CandidatePerPageMaximumQuantity>
<!--Optional:-->
<prod:CandidateDisplayStartSequenceNumber>1</prod:CandidateDisplayStartSequenceNumber>
...
</soapenv:Body>
In the soap validator i am getting invalid decimal value. expected at least one digit.
After writing the following code in my cxf-context I am able to do the input request validation.
But in the response I
<cxf:properties>
<entry key="allowStreaming" value="false" />
<entry key="schema-validation-enabled" value="${isSchemaValidationEnabled}" />
</cxf:properties>
Where isSchemaValidationEnabled = true.
So I am getting the following response in my SOAP UI.
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<soap:Fault>
<faultcode>soap:Client</faultcode>
<faultstring>Unmarshalling Error: cvc-datatype-valid.1.2.1: '' is not a valid value for 'integer'.</faultstring>
</soap:Fault>
</soap:Body>
My requirement is to create custom error message, so that I can propagate the SOAP error in to my response.And I can show a format of following message
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body>
<prod:Response ServiceVersionNumber=" " xmlns:prod="****">
<prod:TransactionDetail>
<prod:ApplicationTransactionID>***Request</prod:ApplicationTransactionID>
<prod:ServiceTransactionID/>
<prod:TransactionTimestamp>2015-05-05T05:33:52</prod:TransactionTimestamp>
</prod:TransactionDetail>
<prod:TransactionResult>
<prod:SeverityText>Error</prod:SeverityText>
<prod:ResultID>CM018</prod:ResultID>
<prod:ResultText>No candidates resulted for the given input criteria.</prod:ResultText>
<prod:ResultMessage>
<prod:ResultDescription>List of service interface is not available for the given Service name or Service Version number</prod:ResultDescription>
</prod:ResultMessage>
</prod:TransactionResult>
</prod:Response>
Please someone respond to the query.
I am trying to integrate Siebel CRM with SAP system via...
The problem is : the SOAP request that siebel is generating is giving me an error while if I use SOAP UI to generate the SOAP request, it is working fine. Following are the error mesages and SOAP requests generated
Error from siebel SOAP request :
CX_ST_MATCH_ELEMENT:.System expected element 'PiCopyreference'".(SBL-EAI-04308)
Unsuccessful Siebel generated SOAP Request:-
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<SOAP-ENV:Body>
<CustomerCreatefromdata1 xmlns="urn:sap-com:document:sap:soap:functions:mc-style">
<PiCompanydata xmlns="urn:sap-com:document:sap:soap:functions:mc-style"></PiCompanydata>
<PiCopyreference xmlns="urn:sap-com:document:sap:soap:functions:mc-style">
<Salesorg xmlns="urn:sap-com:document:sap:soap:functions:mc-style">0001</Salesorg>
<DistrChan xmlns="urn:sap-com:document:sap:soap:functions:mc-style">01</DistrChan>
<Division xmlns="urn:sap-com:document:sap:soap:functions:mc-style">01</Division>
<RefCustmr xmlns="urn:sap-com:document:sap:soap:functions:mc-style">0000000011</RefCustmr>
</PiCopyreference>
<PiOptCompanydata xmlns="urn:sap-com:document:sap:soap:functions:mc-style"></PiOptCompanydata>
<PiOptPersonaldata xmlns="urn:sap-com:document:sap:soap:functions:mc-style">
<Transpzone xmlns="urn:sap-com:document:sap:soap:functions:mc-style">0000000001</Transpzone>
</PiOptPersonaldata>
<PiPersonaldata xmlns="urn:sap-com:document:sap:soap:functions:mc-style">
<TitleP xmlns="urn:sap-com:document:sap:soap:functions:mc-style">MR</TitleP>
<Firstname xmlns="urn:sap-com:document:sap:soap:functions:mc-style">FirstN</Firstname>
<Lastname xmlns="urn:sap-com:document:sap:soap:functions:mc-style">lastN</Lastname>
<City xmlns="urn:sap-com:document:sap:soap:functions:mc-style">SomeCity</City>
<PostlCod1 xmlns="urn:sap-com:document:sap:soap:functions:mc-style">7866</PostlCod1>
<Country xmlns="urn:sap-com:document:sap:soap:functions:mc-style">AT</Country>
<LanguP xmlns="urn:sap-com:document:sap:soap:functions:mc-style">E</LanguP>
<Currency xmlns="urn:sap-com:document:sap:soap:functions:mc-style">INR</Currency>
</PiPersonaldata>
</CustomerCreatefromdata1>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
Successfull SOAP UI generated request :-
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:sap-com:document:sap:soap:functions:mc-style">
<soapenv:Header/>
<soapenv:Body>
<urn:CustomerCreatefromdata1>
<PiCompanydata/>
<PiCopyreference>
<Salesorg>0001</Salesorg>
<DistrChan>01</DistrChan>
<Division>01</Division>
<RefCustmr>0000000011</RefCustmr>
</PiCopyreference>
<PiOptCompanydata/>
<PiOptPersonaldata>
<Transpzone>0000000001</Transpzone>
</PiOptPersonaldata>
<PiPersonaldata>
<TitleP>MR</TitleP>
<Firstname>FirstN</Firstname>
<Lastname>lastN</Lastname>
<City>SomeCity</City>
<PostlCod1>7866</PostlCod1>
<Country>AT</Country>
<LanguP>E</LanguP>
<Currency>INR</Currency>
</PiPersonaldata>
</urn:CustomerCreatefromdata1>
</soapenv:Body>
</soapenv:Envelope>
Also in siebel i'm generating the SOAP request using workflows(no scripting involved).
Could be namespace issue. In the Siebel external IO, you could try inactivating all the user properties for namespace at ICField level.