473,320 Members | 1,722 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Server did not recognize the value of HTTP Header SOAPAction

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
5 1321
r035198x
13,262 8TB
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
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
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
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
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

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

Similar topics

9
by: Jayme Assuncao Casimiro | last post by:
How do I get the content of a http header named "test" in php? +---------------------------------------------+ | Jayme Assuncao Casimiro | | Graduado em Ciência da Computação...
1
by: Andrew Parish | last post by:
I'm writing an application to authenticate a user using a challenge response mechanism. The client and server components of the application talk over HTTP. I would like to use an ASP session...
30
by: Anon | last post by:
If Http headers specify the character encoding, what is the point of the Meta tag specifying it?
0
by: ramas | last post by:
Hi, I am new to PHP scripting and i am trying to connect to a soap server (as mentioned below) using the SOAP extension comesup with PHP. Now my requirement is to add my HTTP header fields along...
4
by: Roshawn Dawson | last post by:
Hi, I've been reading the <a href="http://www.google.com/webmasters/guidelines.html">Google WebMaster Guidelines. Google urges web developers to make use of the If-Modified-Since http header...
3
by: Christian Lutz | last post by:
Hy there I have a Web Services written in Java, running on Tomcat. The Client is written in C#. When i monitor the request/Response with TCPMon (included in Tomcat) i can observer the following...
0
by: Kevin Yu | last post by:
hi All I have a reference to a web servrice in the data access layer. something strange happen with this web service, when calling to one of the web method, it works fine, but not the other web...
6
by: utnemisis51 | last post by:
Hi, I'm trying to include some user credentials for accessing a remote webservice. The remote location requires that I use Basic authentication, which means, from browsing around, I need to...
2
by: =?Utf-8?B?TWlndWVsIElzaWRvcm8=?= | last post by:
Hi, I've built an ASP.NET 1.1 web service and an ASP.NET 1.1 application that calls it is throwing the following exception: System.Web.Services.Protocols.SoapException: Server did not...
1
by: piercy | last post by:
I keep getting this error whe trying to use my web service from an application. I need to be able to change the service address on the fly so ive got it stored in a xml file. I read the xml and it...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.