By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,780 Members | 1,210 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,780 IT Pros & Developers. It's quick & easy.

Server did not recognize the value of HTTP Header SOAPAction

P: 5
I have a Java Client which invokes .NET WebService.
When i run the java client am getting below error.

Server did not recognize the value of HTTP Header SOAPAction: https://ws.int01.data.fairisaac.com/Inbound/RealTime.asmx?wsdl.
at org.apache.axis.message.SOAPFaultBuilder.createFau lt(SOAPFaultBuilder.java:260)
at org.apache.axis.message.SOAPFaultBuilder.endElemen t(SOAPFaultBuilder.java:169)
at org.apache.axis.encoding.DeserializationContextImp l.endElement(DeserializationContextImpl.java:1015)
at com.sun.org.apache.xerces.internal.parsers.Abstrac tSAXParser.endElement(AbstractSAXParser.java:601)
at com.sun.org.apache.xerces.internal.impl.XMLDocumen tFragmentScannerImpl.scanEndElement(XMLDocumentFra gmentScannerImpl.java:1774)
at com.sun.org.apache.xerces.internal.impl.XMLDocumen tFragmentScannerImpl$FragmentContentDriver.next(XM LDocumentFragmentScannerImpl.java:2930)
at com.sun.org.apache.xerces.internal.impl.XMLDocumen tScannerImpl.next(XMLDocumentScannerImpl.java:648)
at com.sun.org.apache.xerces.internal.impl.XMLNSDocum entScannerImpl.next(XMLNSDocumentScannerImpl.java: 140)
at com.sun.org.apache.xerces.internal.impl.XMLDocumen tFragmentScannerImpl.scanDocument(XMLDocumentFragm entScannerImpl.java:510)
at com.sun.org.apache.xerces.internal.parsers.XML11Co nfiguration.parse(XML11Configuration.java:807)
at com.sun.org.apache.xerces.internal.parsers.XML11Co nfiguration.parse(XML11Configuration.java:737)
at com.sun.org.apache.xerces.internal.parsers.XMLPars er.parse(XMLParser.java:107)
at com.sun.org.apache.xerces.internal.parsers.Abstrac tSAXParser.parse(AbstractSAXParser.java:1205)
at com.sun.org.apache.xerces.internal.jaxp.SAXParserI mpl$JAXPSAXParser.parse(SAXParserImpl.java:522)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:3 95)
at org.apache.axis.encoding.DeserializationContextImp l.parse(DeserializationContextImpl.java:242)
at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPar t.java:538)
at org.apache.axis.Message.getSOAPEnvelope(Message.ja va:376)
at org.apache.axis.client.Call.invokeEngine(Call.java :2583)
at org.apache.axis.client.Call.invoke(Call.java:2553)
at org.apache.axis.client.Call.invoke(Call.java:2248)
at org.apache.axis.client.Call.invoke(Call.java:2171)
at org.apache.axis.client.Call.invoke(Call.java:1691)
at WebServiceAxisClient.main(WebServiceAxisClient.jav a:47)
Feb 21 '12 #1
Share this Question
Share on Google+
5 Replies


10K+
P: 13,264
You are passing a SOAPAction parameter in the HTTP request that does not match what the service is expecting or you are not passing the SOAPAction header at all.
Feb 21 '12 #2

P: 5
I have used these two parameters in my stub
call.setProperty(Call.SOAPACTION_USE_PROPERTY, new Boolean(true));
call.setProperty(Call.SOAPACTION_URI_PROPERTY,"ws. int01.data.fairisaac.com");

still am getting the same error "call.setProperty(Call.SOAPACTION_USE_PROPERTY , new Boolean(true));
call.setProperty(Call.SOAPACTION_URI_PROPERTY,"ws. int01.data.fairisaac.com");" .

Can some one please help me..
Mar 4 '12 #3

P: 5
This is my Java Class.



import java.net.MalformedURLException;
import java.net.URL;
import java.net.URLConnection;
import org.apache.axis.client.Call;
import org.apache.axis.client.Service;
import javax.xml.namespace.QName;
import java.security.cert.X509Certificate;
import javax.net.ssl.SSLContext;
import javax.net.ssl.SSLSocket;
import javax.net.ssl.SSLSocketFactory;
import javax.net.ssl.TrustManager;
import javax.net.ssl.X509TrustManager;
import javax.xml.soap.MimeHeaders;
import javax.xml.soap.SOAPHeaderElement;
import javax.xml.ws.Response;

import java.io.IOException;
import java.io.InputStreamReader;
import java.io.OutputStream;
import java.io.OutputStreamWriter;
import java.io.Reader;
import java.net.URL;
import java.net.URLConnection;
import javax.net.ssl.HostnameVerifier;
import javax.net.ssl.HttpsURLConnection;
import javax.net.ssl.SSLContext;
import javax.net.ssl.SSLSession;
import javax.net.ssl.TrustManager;
import javax.net.ssl.X509TrustManager;

public class TestSOAP {

private static Service service;

/**
* @param args
*/
public static void main(String[] args)
{
// TODO Auto-generated method stub
String namespace = "https://ws.int01.data.fairisaac.com/";
String portName = "ws.int01.data.fairisaac";
QName portQN = new QName(namespace, portName);
String operationName = "SubmitRequest";

try
{
XTrustProvider.install() ;
Service service = new Service();
Call call = (Call) service.createCall();
call.setPortTypeName(portQN);
call.setOperationName(new QName(namespace, operationName));
call.setProperty(Call.ENCODINGSTYLE_URI_PROPERTY, "");
call.setProperty(Call.OPERATION_STYLE_PROPERTY, "wrapped");
call.setProperty(Call.SOAPACTION_USE_PROPERTY, new Boolean(true));
call.setProperty(Call.SOAPACTION_URI_PROPERTY,"ws. int01.data.fairisaac.com");

call.setUseSOAPAction(true);
call.setTargetEndpointAddress("https://ws.int01.data.fairisaac.com/Inbound/RealTime.asmx");
//call.addParameter("param1", <xsd:string>,ParameterMode.IN);
// call.setReturnType(<xsd:string>);

System.out.println("Invoke WebService");
Object[] inParams = new Object[] {"<soapenv:Envelope xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:ent=\"http://fairisaac.com/ScoreNet/EntryPoint\">"+
"<soapenv:Header>"+
"<ent:UserNamePasswordSoapHeader>"+
" <ent:Username>PNCRUser01</ent:Username>"+
"<ent:Password>Password40rt!</ent:Password>"+
"</ent:UserNamePasswordSoapHeader>"+
"</soapenv:Header>"+
"<soapenv:Body>"+
" <ent:SubmitRequest>"+
" <ent:input>"+
"<![CDATA["+
"<ns1:ServiceMessage xmlns:ns1=\"http://fairisaac.com/ScoreNet/Envelope/Request\" xmlns:ns=\"http://fairisaac.com/ScoreNet/PNC/Take1R\">"+
"<ns1:TransactionHeader ServiceName=\"TAKE1R\" ServiceVersion=\"1.0\" SourceOrganizationName=\"PNC\" SourceApplicationName=\"CLOBS\"/>"+
"<ns1:DataMessage>"+
"<ns:Take1R xmlns:ns=\"http://fairisaac.com/ScoreNet/PNC/Take1R\">"+
"<ns:Application SourceCode=\"OCCC\" AffiliateNumber=\"1\" ApplicationType=\"Score\" DeliveryOptionCode=\"PNC_ICL_ORT\" ProcessingRequestType=\"DA\" ApplicationCrossReferenceId=\"G.R.BODKINS\" ApplicationDate=\"2011-11-16\" LoanClass=\"\" LoanType=\"mm\" ProductType=\"EC\">"+
"<ns:CreditRequest RequestedLoanAmount=\"50000\" ProductCategory=\"PNC_Consumer_Lending\"/> "+
"<ns:Applicant ApplicantType=\"Primary\">"+
"<ns:Personal SSN=\"135869076\" FirstName=\"EVE\" LastName=\"AMACOMMON\"/> "+
"<ns:ApplicantAddress AddressStatusIndicator=\"Current\" UnparsedStreetAddress=\"11 99TH ST\" UnparsedStreetAddress2=\"14\" City=\"TOMMORROW\" State=\"IL\" PostalCode=\"60750\"/>"+
"</ns:Applicant> "+

"</ns:Application> "+
"<ns:ScoreNet ProfileName=\"ExperianOnly\"> "+
"<ns:DataSource Code=\"XPN\" Version=\"7.0\">"+
"<ns:InquiryParameters Preamble=\"TEST\" SubscriberNumber=\"5991393\" Password=\"ABC\"/>"+
"</ns:DataSource>"+
"</ns:ScoreNet>"+
"</ns:Take1R>"+
"</ns1:DataMessage>"+
"</ns1:ServiceMessage>"+
"]]>"+
"</ent:input>"+
"</ent:SubmitRequest>"+
"</soapenv:Body>"+
"</soapenv:Envelope>"};
String ret = (String) call.invoke(inParams);
//System.out.println("Response"+ret);
}
catch(Exception e){
e.printStackTrace();
System.out.println("Exception"+e.toString());
}
}
}
Mar 4 '12 #4

P: 5
i have used below lines to set SOAPAction. call.setProperty(Call.SOAPACTION_USE_PROPERTY, new Boolean(true)); call.setProperty(Call.SOAPACTION_URI_PROPERTY,"htt ps://ws.int01.data.fairisaac.com/SubmitRequest");

Still am getting "Server did not recognize the value of HTTP Header SOAPAction"

Can some one please help me with this. So that i can invoke my webservice.
Mar 5 '12 #5

P: 5
i have used below lines to set SOAPAction. call.setProperty(Call.SOAPACTION_USE_PROPERTY, new Boolean(true)); call.setProperty(Call.SOAPACTION_URI_PROPERTY,"htt ps://ws.int01.data.fairisaac.com/SubmitRequest");

Still am getting "Server did not recognize the value of HTTP Header SOAPAction"

Can some one please help me with this. So that i can invoke my webservice.
Mar 5 '12 #6

Post your reply

Sign in to post your reply or Sign up for a free account.