System.Web.Services.Protocols.SoapException: CX_INVALID_TRANSFORMATION
Hi all,
i have a problem with a service.
In the "old" systems WITHOUT Soamanager the service works fine.
Now the service throws the following exception:
System.Web.Services.Protocols.SoapException: CX_INVALID_TRANSFORMATION:An exception with the type CX_INVALID_TRANSFORMATION occurred, but was neither handled locally, nor declared in a RAISING clause.The transformation /1BCDWB/WSS0071002102836497005 could not be executed at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall) at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters) at C9X.ZWS_PASSWORD.ZUResetSapPassword(ZUResetSapPassword ZUResetSapPassword1) in c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\ajaxenabledwebsite1\155921d1\5360ddf9\App_WebReferences.mlueh3hc.4.cs:line 49 at _Default.ResetUserPasswd(String sapUserName, String eMail, String sapLanguage, String sapSystem) in c:\AJAXEnabledWebSite1\Default.aspx.cs:line 326
I have configured the logical port in soamanager and i can't find the error....
Any ideas?
regards
Hi
Check SAP Note 701467 for error CX_INVALID_TRANSFORMATION
SAP Note 773330 Incorrect exception for CALL TRANSFORMATION
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes/sdn_oss_bc_aba/~form/handler%7b5f4150503d3030323030363832353030303030303031393732265f4556454e543d444953504c4159265f4e4e554d3d373031343637%7d
Refer this link too
CALL TRANSFORMATION
may get some help
Regds
Nidhi
Similar Messages
-
Hi. I have inherited a client's mission critical database + SSRS project that I am attempting to migrate from 32-bit SQL Server Express 2005 + SSRS on a Windows Server 2003 to 64-bit SQL Server Express 2008 R2 + SSRS on a Server 2012 R2 Essentials.
While I am not skilled in SQL Server I am having to learn quickly(!) and have managed to migrate the database and web application (with little change, apart from the web.config) and it is working fine. I have also migrated the SSRS database and can open
the Report Manager and generate reports OK.
However, the database's web application fails with a "Server Error in '/' Application" when it is used to generate a PDF report, with this exception:
System.Web.Services.Protocols.SoapException: Server did not recognize the value of HTTP Header SOAPAction: http://schemas.microsoft.com/sqlserver/2003/12/reporting/reportingservices/Render
(full text of error message given below).
My research has thrown up a few references to this, with the suggestion of changing the SSRS endpoint used by the code from ReportService.asmx to ReportService2010.asmx. This does not help, though, and neither does using the ReportService2005.asmx or ReportExecution2005.asmx
endpoints.
If I open the endpoint directly in a web browser using http://<ip address>:<port>/ReportServer/ReportService2010.asmx then it displays a sensible-looking XML document tree (but no associated style info).
I'm not really sure about where to go from here. Can anyone help?
PS: Here's the full error page referred to above:
Server Error in '/' Application.
System.Web.Services.Protocols.SoapException: Server did not recognize the value of HTTP Header SOAPAction: http://schemas.microsoft.com/sqlserver/2003/12/reporting/reportingservices/Render.
at System.Web.Services.Protocols.Soap11ServerProtocolHelper.RouteRequest()
at System.Web.Services.Protocols.SoapServerProtocol.Initialize()
at System.Web.Services.Protocols.ServerProtocol.SetContext(Type type, HttpContext context, HttpRequest request, HttpResponse response)
at System.Web.Services.Protocols.ServerProtocolFactory.Create(Type type, HttpContext context, HttpRequest request, HttpResponse response, Boolean& abortProcessing)
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Web.Services.Protocols.SoapException: System.Web.Services.Protocols.SoapException: Server did not recognize the value of HTTP Header SOAPAction: http://schemas.microsoft.com/sqlserver/2003/12/reporting/reportingservices/Render.
at System.Web.Services.Protocols.Soap11ServerProtocolHelper.RouteRequest()
at System.Web.Services.Protocols.SoapServerProtocol.Initialize()
at System.Web.Services.Protocols.ServerProtocol.SetContext(Type type, HttpContext context, HttpRequest request, HttpResponse response)
at System.Web.Services.Protocols.ServerProtocolFactory.Create(Type type, HttpContext context, HttpRequest request, HttpResponse response, Boolean& abortProcessing)
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[SoapException: System.Web.Services.Protocols.SoapException: Server did not recognize the value of HTTP Header SOAPAction: http://schemas.microsoft.com/sqlserver/2003/12/reporting/reportingservices/Render.
at System.Web.Services.Protocols.Soap11ServerProtocolHelper.RouteRequest()
at System.Web.Services.Protocols.SoapServerProtocol.Initialize()
at System.Web.Services.Protocols.ServerProtocol.SetContext(Type type, HttpContext context, HttpRequest request, HttpResponse response)
at System.Web.Services.Protocols.ServerProtocolFactory.Create(Type type, HttpContext context, HttpRequest request, HttpResponse response, Boolean& abortProcessing)]
System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall) +413241
System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters) +300
AuditecSite.ReportService.ReportingService.Render(String Report, String Format, String HistoryID, String DeviceInfo, ParameterValue[] Parameters, DataSourceCredentials[] Credentials, String ShowHideToggle, String& Encoding, String& MimeType, ParameterValue[]& ParametersUsed, Warning[]& Warnings, String[]& StreamIds) +203
AuditecSite.RenderToPDF.RendertoPDF_PreRender(Object sender, EventArgs e) +1040
System.Web.UI.Control.OnPreRender(EventArgs e) +11143742
System.Web.UI.Control.PreRenderRecursiveInternal() +108
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3394
Version Information: Microsoft .NET Framework Version:2.0.50727.8009; ASP.NET Version:2.0.50727.8010
Steve.Hi
Check SAP Note 701467 for error CX_INVALID_TRANSFORMATION
SAP Note 773330 Incorrect exception for CALL TRANSFORMATION
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes/sdn_oss_bc_aba/~form/handler%7b5f4150503d3030323030363832353030303030303031393732265f4556454e543d444953504c4159265f4e4e554d3d373031343637%7d
Refer this link too
CALL TRANSFORMATION
may get some help
Regds
Nidhi -
I am trying to acces my web service using this code
Call call = new Call ();
SOAPMappingRegistry soap = new SOAPMappingRegistry();
call.setTargetObjectURI ("http://tempuri.org/");
call.setMethodName ("EarnNValue");
Vector params = new Vector ();
params.addElement (new Parameter("customer_id", String.class, "gauravbehl",Constants.NS_URI_SOAP_ENC));
params.addElement (new Parameter("channel_id", String.class, "C0002",Constants.NS_URI_SOAP_ENC));
call.setParams (params);
Response resp = call.invoke(new URL("http://203.199.76.2/api/earnnvalue.asmx"), "http://tempuri.org//EarnNValue") ;
if (resp.generatedFault ())
Fault fault = resp.getFault ();
System.out.println (" Fault Code = " + fault.getFaultCode ());
System.out.println (" Fault String = " + fault.getFaultString ());
else
Parameter result = resp.getReturnValue ();
System.out.println (result.getValue ());
out.println (result.getValue ());
and i am getting the the following error
Fault Code = soap:Client
Fault String = System.Web.Services.Protocols.SoapException: Server did not recognize the value of HTTP Header SOAPAction: http://tempuri.org//EarnNValue.
at System.Web.Services.Protocols.Soap11ServerProtocolHelper.RouteRequest()
at System.Web.Services.Protocols.SoapServerProtocol.Initialize()
at System.Web.Services.Protocols.ServerProtocolFactory.Create(Type type, HttpContext context, HttpRequest request, HttpResponse response, Boolean& abortProcessing)
Please help.
Thanx
GB<%@ page language="java" import="java.util.*, java.io.*, javax.mail.*, java.net.*, org.apache.soap.util.xml.*, org.apache.soap.encoding.soapenc.BeanSerializer, org.apache.soap.encoding.*,org.apache.soap.*, org.apache.soap.rpc.*"%>
<%
try
out.println ("Starting");
System.out.println("heree");
Call call = new Call ();
System.out.println("here");
SOAPMappingRegistry soap = new SOAPMappingRegistry();
call.setTargetObjectURI ("http://tempuri.org/");
call.setMethodName ("EarnNValue");
call.setEncodingStyleURI("http://schemas.xmlsoap.org/soap/encoding/");
Vector params = new Vector ();
params.addElement (new Parameter("customer_id", String.class, "gauravbehl",Constants.NS_URI_SOAP_ENC));
params.addElement (new Parameter("channel_id", String.class, "C0002",Constants.NS_URI_SOAP_ENC));
params.addElement (new Parameter("category_id", String.class, "club",Constants.NS_URI_SOAP_ENC));
params.addElement (new Parameter("transaction_date", String.class, "16/07/04 14:41:20",Constants.NS_URI_SOAP_ENC));
params.addElement (new Parameter("parameter_id", String.class, "login",Constants.NS_URI_SOAP_ENC));
params.addElement (new Parameter("parameter_value", String.class, "1",Constants.NS_URI_SOAP_ENC));
call.setParams (params);
Response resp = call.invoke(new URL("http://203.199.76.2/api/earnnvalue.asmx"), "http://tempuri.org//EarnNValue") ;
if (resp.generatedFault ())
Fault fault = resp.getFault ();
System.out.println ("Something is wrong");
System.out.println (" Fault Code = " + fault.getFaultCode ());
System.out.println (" Fault String = " + fault.getFaultString ());
else
Parameter result = resp.getReturnValue ();
System.out.println (result.getValue ());
out.println (result.getValue ());
catch (Exception e)
System.out.println ("********Exception*******");
System.out.println (e);
out.println ("Ending");
%> -
Azure System.Web.Services.Protocols.SoapException
I use a web service on a server and it works OK. Now I want to transfer my site to an Azure server. For now I created a free web site on azure to test it.
It is a Silverlight application that calls a service to create a report.
When I call this service I have the following error
error:
<?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Body><soap:Fault><faultcode>soap:Server</faultcode><faultstring>System.Web.Services.Protocols.SoapException: Server was unable to process request. ---> System.ArgumentException: Parameter is not valid.
at System.Drawing.Graphics.GetHdc()
at C1.Util.FontSubSet.#e.#cA.#Kn(FontSubSet owner, String tableName)
at C1.Util.FontSubSet.GetFontTableStream(String name)
at C1.Util.FontSubSet.#TDd()
at C1.Util.FontSubSet.Init()
at C1.Util.FontSubSet.GetFontSubSet(FontKey fk)
at C1.C1Preview.C1PrintDocument.#ydd(String s, String fontName, Boolean fontBold, Boolean fontItalic, Boolean updateDocumentFonts)
at C1.C1Preview.C1PrintDocument.#zdd(String s, String fontName, Byte fontCharSet, FontStyle fontStyle)
at C1.C1Preview.RenderText.InternalResolvingFinished()
at C1.C1Preview.RenderObject.ResolvingFinished()
at C1.C1Report.Layout.RenderDirect(ILengthCacheProvider lcp, RenderObject ro, RenderFragment rf, Double x, Double y, Double width, Double height)
at C1.C1Report.Layout.RenderDirect(ILengthCacheProvider lcp, RenderObject ro, RenderFragment rf, RectangleD bounds)
at C1.C1Report.Field.#RLd(ExportFilter export, Layout layout, RectangleD bounds, String str, Boolean rtf, Double lineWidthTw, Int32 firstCharIndex, Int32 length)
at C1.C1Report.Field.Render(Layout layout, Double x, Double y, Boolean measure)
at C1.C1Report.Field.Render(Layout layout, Double x, Double y)
at C1.C1Report.Section.Render(Boolean keepPage, Group ownerGroup)
at C1.C1Report.Layout.#fMd(Section s)
at C1.C1Report.Layout.StartDoc()
at C1.C1Report.C1Report.RenderFirstPass(Boolean releaseDocument)
at C1.C1Report.C1Report.#fNd()
at C1.C1Report.C1Report.#dNd(ExportFilter filter, Boolean reuse)
at C1.C1Report.C1Report.RenderToStream(Stream stream, FileFormatEnum fmt, String idPrefix, String fileName)
at C1.C1Report.C1Report.RenderToStream(Stream stream, FileFormatEnum fmt)
at Gestion1.Web.RapportS.GetReportCommunique()
--- End of inner exception stack trace ---</faultstring><detail /></soap:Fault></soap:Body></soap:Envelope> `Based on the provided stack trace it looks like you are attempting to run report tools from ComponentOne on the server.
The issue is caused by access to APIs that are restricted from use by Azure Web Site instances for security and performance reasons. The native GDI rendering methods are among these restricted APIs.
See the post from Jim Cheshire towards the end of this
post.
Until and unless these restrictions are relaxed (which they may not be) your options are to move the service to a Cloud Service instance, or move to another component that does not use native GDI methods to render. -
System.Web.Services.protocol.SoapHeaderException
I created a web service using java, with NetBeans 5.0. I used sun application server. Then I create Microsoft C# web service client in order to connect to the java web service. When I connect it I got following Exception called , System.Web.Services.protocol.SoapHeaderException. JAXRPC Internal Server Header
Please give some idea to resolve this exception.
My Email is : [email protected]Ok, from the looks of it you're calling the web service from within an SSIS package. Are you able to call the web service in a stand-alone C# console app and is the error just occurring in the SSIS package or not? If it occurs in both situations, continue
development in in the C# console app as this will make debugging easier. Also, in order to help you further, are you calling a web service under your control or not, and is the web service a WCF service or not?
Kind regards,
Margriet Bruggeman
Lois & Clark IT Services
web site: http://www.loisandclark.eu
blog: http://www.sharepointdragons.com -
System.Web.Services.Protocols.SoapHeaderException error in script task
HI,
My requirement is I have to create a XML of each row from a table and push one XML data of each row to a web services. This is a syncronous call to web services where it will send the response of each row XML.
The WSDL file is having a method called MATCHXML having 4 parameters namely ControlXML, BatchXML, Username, Password. I have created the ControlXML & BatchXML through code and storing into a string variable seperatly. The WSDL alos contains 4 input called
RequestUUID, ChannelID, ServiceRequestID & ServiceRequestVersion which has to be send to web services compulsory along with the method. In order to implement this, first I have added Web reference of the Web service URL into library, then invoked the method
to hit the web services. The code looks likes as below:
//Initiated an object of the class from the WSDL file
Matching match = new Matching
string result = match.MatchXML(controlXML,BatchXML,Username,Password)
Then, at the above line it display the below error:
SSIS package "HunterAutomation.dtsx" starting. Error: 0x1 at Generates XML file & Update variable: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Web.Services.Protocols.SoapHeaderException:
Mandatory field is not set in EAI_SOAPINPUT; Element -> Environment.eaiCommon.BTID, Environment.eaiCommon.Header.ChannelID, Environment.eaiCommon.Header.RequestUUID, Environment.eaiCommon.Header.ServiceRequestId, Environment.eaiCommon.Header.ServiceRequestVersion
at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall) at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)
at ST_ae3b1e5eadb64fdba5040f4efa743458.csproj.Hunter.Matching.Match(String controlXml, String batchXml, String username, String password) in C:\Users\CPUTRACKINGAPP\AppData\Local\Temp\3\SSIS\377534961d7f4fdb91565f9366317fdc\Web References\Hunter\Reference.cs:line
93 at ST_ae3b1e5eadb64fdba5040f4efa743458.csproj.ScriptMain.Main() in C:\Users\CPUTRACKINGAPP\AppData\Local\Temp\3\SSIS\377534961d7f4fdb91565f9366317fdc\ScriptMain.cs:line 1307 --- End of inner exception stack trace --- at System.RuntimeMethodHandle._InvokeMethodFast(Object
target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner) at System.RuntimeMethodHandle.InvokeMethodFast(Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeTypeHandle
typeOwner) at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks) at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr,
Binder binder, Object[] parameters, CultureInfo culture) at System.RuntimeType.InvokeMember(String name, BindingFlags bindingFlags, Binder binder, Object target, Object[] providedArgs, ParameterModifier[] modifiers, CultureInfo culture, String[] namedParams)
at System.Type.InvokeMember(String name, BindingFlags invokeAttr, Binder binder, Object target, Object[] args, CultureInfo culture) at Microsoft.SqlServer.Dts.Tasks.ScriptTask.VSTATaskScriptingEngine.ExecuteScript() Task failed: Generates XML file & Update
variable Warning: 0x80019002 at For Loop Container: SSIS Warning Code DTS_W_MAXIMUMERRORCOUNTREACHED. The Execution method succeeded, but the number of errors raised (1) reached the maximum allowed (1); resulting in failure. This occurs when the number of
errors reaches the number specified in MaximumErrorCount. Change the MaximumErrorCount or fix the errors. Warning: 0x80019002 at HunterAutomation: SSIS Warning Code DTS_W_MAXIMUMERRORCOUNTREACHED. The Execution method succeeded, but the number of errors raised
(1) reached the maximum allowed (1); resulting in failure. This occurs when the number of errors reaches the number specified in MaximumErrorCount. Change the MaximumErrorCount or fix the errors. SSIS package "HunterAutomation.dtsx" finished: Failure.
In order to solve the issue i have manual created the soap header code. Now Im not understanding how to send the soap header XML message along with the MATCHXML method. I am trying very hard to solve the issue from last 3 weeks but NO LUCK.
Could anyone please help me out on this and I'm already running out of my deadlines.Ok, from the looks of it you're calling the web service from within an SSIS package. Are you able to call the web service in a stand-alone C# console app and is the error just occurring in the SSIS package or not? If it occurs in both situations, continue
development in in the C# console app as this will make debugging easier. Also, in order to help you further, are you calling a web service under your control or not, and is the web service a WCF service or not?
Kind regards,
Margriet Bruggeman
Lois & Clark IT Services
web site: http://www.loisandclark.eu
blog: http://www.sharepointdragons.com -
National ID System Web Services (Netbeans)
Hi;
I want connect JAXRPC Web Services with NetBeans over https.
I have tried the exapmle at http://users.skynet.be/pascalbotte/rcx-ws-doc/jaxrpchandler.htm
It gives error = "port: {http://kps.nvi.gov.tr/WS}KPSSoap does not contain operation: ilListesiGetir"
Code:
URL url = new URL("https://kps.nvi.gov.tr/Mernis.KPS.Web.SI/KPS.asmx?WSDL");
QName serviceName=new QName("http://kps.nvi.gov.tr/WS", "KPS");
QName portName = new QName("http://kps.nvi.gov.tr/WS", "KPSSoap");
ServiceFactory factory = ServiceFactory.newInstance();
Service service = factory.createService( url, serviceName);
HandlerRegistry hr = service.getHandlerRegistry();
List handlerChain = hr.getHandlerChain(portName);
HandlerInfo hi = new HandlerInfo();
hi.setHandlerClass( KpsSecurityHandler.class);
handlerChain.add(hi);
//this line gives error
KPSSoap port = (KPSSoap) service.getPort(portName, KPSSoap.class);
ArrayOfIlBilgisi ilListesi = port.ilListesiGetir();
List liste=ilListesi.getIlBilgisi();
for (int i = 0; i < liste.size(); i++)
out.println( liste.indexOf(i) + "\n");
Note: I can connect "KPS" service and "KPSSoap" port succesfuly. But when i tried to connect operation "ilListesiGetir" it gives the error port: {http://kps.nvi.gov.tr/WS}KPSSoap does not contain operation: ilListesiGetir
NetBeans Version 6.1
Please help us.
Thanks.<%@ page language="java" import="java.util.*, java.io.*, javax.mail.*, java.net.*, org.apache.soap.util.xml.*, org.apache.soap.encoding.soapenc.BeanSerializer, org.apache.soap.encoding.*,org.apache.soap.*, org.apache.soap.rpc.*"%>
<%
try
out.println ("Starting");
System.out.println("heree");
Call call = new Call ();
System.out.println("here");
SOAPMappingRegistry soap = new SOAPMappingRegistry();
call.setTargetObjectURI ("http://tempuri.org/");
call.setMethodName ("EarnNValue");
call.setEncodingStyleURI("http://schemas.xmlsoap.org/soap/encoding/");
Vector params = new Vector ();
params.addElement (new Parameter("customer_id", String.class, "gauravbehl",Constants.NS_URI_SOAP_ENC));
params.addElement (new Parameter("channel_id", String.class, "C0002",Constants.NS_URI_SOAP_ENC));
params.addElement (new Parameter("category_id", String.class, "club",Constants.NS_URI_SOAP_ENC));
params.addElement (new Parameter("transaction_date", String.class, "16/07/04 14:41:20",Constants.NS_URI_SOAP_ENC));
params.addElement (new Parameter("parameter_id", String.class, "login",Constants.NS_URI_SOAP_ENC));
params.addElement (new Parameter("parameter_value", String.class, "1",Constants.NS_URI_SOAP_ENC));
call.setParams (params);
Response resp = call.invoke(new URL("http://203.199.76.2/api/earnnvalue.asmx"), "http://tempuri.org//EarnNValue") ;
if (resp.generatedFault ())
Fault fault = resp.getFault ();
System.out.println ("Something is wrong");
System.out.println (" Fault Code = " + fault.getFaultCode ());
System.out.println (" Fault String = " + fault.getFaultString ());
else
Parameter result = resp.getReturnValue ();
System.out.println (result.getValue ());
out.println (result.getValue ());
catch (Exception e)
System.out.println ("********Exception*******");
System.out.println (e);
out.println ("Ending");
%> -
Source System / Web Service for XI
Hi,
I need to create a Source System in BW for Web Service which should get messages from a XI System.
I am requested to introduce a <i><b>Type and Release</b></i> Information which I do not know what should be the correct one of the following list
1) Oracle Applications 11i
2) Tealeaf 2.05B
3) SAP xPD
some idea?
Thanks and regards
FedeXJust to elaborate,
I have created an application which accepts a user request for data transfer from a source system to target system viz. Primavera project planner and SAP project system.
The application verifies the data on the source and target system before actually transferring data.The info is displayed to the user and only when the user clicks transfer button is the data transferred.
When the data size is small,the transferred successfully.
However , when data size is large, the application gives XML Token Writer Class not found exception.
Is there any specific reason for this??
Thanks in advance. -
Source System - Web Service (BW 7.0)
Hi,
I need some urgent help in the following topic..
I am using a Web Service source System to load Info in an ODS .
I see that the DataSource cumulates in just one request the Information that I am pushing to the BW System... and the info stays there... it does not flow to the ODS...
How can I do to update the ODS automatically from the DataSource?
Thanks
FedeXI found in the monitoring something like this ...
<b>the maximum wait time for this request has not yet been exceeded</b>
and
<b>Wait Until 01.03.2007 10:46:50</b>
it is possible to change that wait time? where?
Thanks and regards
FedeX -
Calling web service using ksoap2
Hello Friends,
I am writing a Java client which uses ksoap2. I am new to web services and ksoap2. The WSDL is like this
<?xml version="1.0" encoding="utf-8"?>
<wsdl:definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:tns="http://leaguematch.com/matchwatch/" xmlns:s="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" targetNamespace="http://leaguematch.com/matchwatch/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
<wsdl:types>
<s:schema elementFormDefault="qualified" targetNamespace="http://leaguematch.com/matchwatch/">
<s:element name="WebServiceInfo">
<s:complexType />
</s:element>
<s:element name="WebServiceInfoResponse">
<s:complexType>
<s:sequence>
<s:element minOccurs="1" maxOccurs="1" name="WebServiceInfoResult" type="tns:Information" />
</s:sequence>
</s:complexType>
</s:element>
<s:complexType name="Information">
<s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="ServiceName" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="SupportPhone" type="s:string" />
</s:sequence>
</s:complexType>
<s:complexType name="Credential">
<s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="Email" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="Password" type="s:string" />
</s:sequence>
</s:complexType>
<s:element name="GetScore">
<s:complexType>
<s:sequence>
<s:element minOccurs="1" maxOccurs="1" name="credValidate" type="tns:Credential" />
<s:element minOccurs="1" maxOccurs="1" name="MyScript" type="tns:ScriptData" />
</s:sequence>
</s:complexType>
</s:element>
<s:complexType name="ScriptData">
<s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="sScriptCode" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="sScriptName" type="s:string" />
</s:sequence>
</s:complexType>
<s:element name="GetScoreResponse">
<s:complexType>
<s:sequence>
<s:element minOccurs="1" maxOccurs="1" name="GetScoreResult" type="s:boolean" />
<s:element minOccurs="1" maxOccurs="1" name="MyScript" type="tns:ScriptData" />
</s:sequence>
</s:complexType>
</s:element>
</s:schema>
</wsdl:types>
<wsdl:message name="WebServiceInfoSoapIn">
<wsdl:part name="parameters" element="tns:WebServiceInfo" />
</wsdl:message>
<wsdl:message name="WebServiceInfoSoapOut">
<wsdl:part name="parameters" element="tns:WebServiceInfoResponse" />
</wsdl:message>
<wsdl:message name="GetScoreSoapIn">
<wsdl:part name="parameters" element="tns:GetScore" />
</wsdl:message>
<wsdl:message name="GetScoreSoapOut">
<wsdl:part name="parameters" element="tns:GetScoreResponse" />
</wsdl:message>
<wsdl:portType name="matchwatchSoap">
<wsdl:operation name="WebServiceInfo">
<wsdl:input message="tns:WebServiceInfoSoapIn" />
<wsdl:output message="tns:WebServiceInfoSoapOut" />
</wsdl:operation>
<wsdl:operation name="GetScore">
<wsdl:input message="tns:GetScoreSoapIn" />
<wsdl:output message="tns:GetScoreSoapOut" />
</wsdl:operation>
</wsdl:binding>
<wsdl:binding name="matchwatchSoap12" type="tns:matchwatchSoap">
<soap12:binding transport="http://schemas.xmlsoap.org/soap/http" />
<wsdl:operation name="WebServiceInfo">
<soap12:operation soapAction="http://leaguematch.com/matchwatch/WebServiceInfo" style="document" />
<wsdl:input>
<soap12:body use="literal" />
</wsdl:input>
<wsdl:output>
<soap12:body use="literal" />
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="GetScore">
<soap12:operation soapAction="http://leaguematch.com/matfchwatch/GetScore" style="document" />
<wsdl:input>
<soap12:body use="literal" />
</wsdl:input>
<wsdl:output>
<soap12:body use="literal" />
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
<wsdl:service name="matchwatch">
<wsdl:port name="matchwatchSoap" binding="tns:matchwatchSoap">
<soap:address location="http://www.leaguematch.com.au/matchwatch/matchwatch.asmx" />
</wsdl:port>
<wsdl:port name="matchwatchSoap12" binding="tns:matchwatchSoap12">
<soap12:address location="http://www.leaguematch.com.au/matchwatch/matchwatch.asmx" />
</wsdl:port>
</wsdl:service>
</wsdl:definitions>
This is how I get the data from the web service with J2SE platform
javax.xml.ws.Holder<com.leaguematch.matchwatch.ScriptData> myScript = new
javax.xml.ws.Holder<com.leaguematch.matchwatch.ScriptData>();
com.leaguematch.matchwatch.ScriptData scData = new com.leaguematch.matchwatch.ScriptData();
scData.setSScriptCode(jTextField1.getText());
myScript.value = scData;
javax.xml.ws.Holder<Boolean> getScoreResult = new javax.xml.ws.Holder<Boolean>();
port.getScore(credValidate, myScript, getScoreResult);
What is the equivalent for JavaME platform? This is what I tried.
SoapObject credential = new SoapObject(nameSpace, "Credential");
credential.addProperty("Email", new String("[email protected]"));
credential.addProperty("Password", new String("[email protected]"));
SoapObject scriptData = new SoapObject(nameSpace, "ScriptData");
scriptData.addProperty("sScriptCode", new String("GROUND1"));
request.addProperty("credValidate", credential );
request.addProperty("MyScript", scriptData);
request.addProperty("getScoreResult", getScoreResult);
// serialize the envelope
SoapSerializationEnvelope envelope = new SoapSerializationEnvelope(SoapEnvelope.VER11);
envelope.bodyOut = request;
envelope.setOutputSoapObject(request);
//make the call
// set up the transport
HttpTransport ht = new HttpTransport(endPointURL);
ht.debug = true;
ht.call("http://leaguematch.com/matchwatch/GetScore", envelope);
The server responded
SoapFault - faultcode: 'soap:Server' faultstring: 'System.Web.Services.Protocols.SoapException:
Server was unable to process request. ---> System.Exception: You must pass Script Code in
MyScript.sScriptCode:=ScriptData.sScriptCode to execute GetScore successfully
I am able to get data using "WebServiceInfoResponse" method.
But to getScore, I don't know how to pass the credential and scriptData to the web services and get its result ?
Please help
Sudheer PalaprambilHello,
I am not able to access the link you posted about calling a web service. Could please share your code again ?
Thanks in advance for your help...
Lionel -
SSIS Web Service Complex Type Inputs
Hi,
I am trying to make a call to a third-party web service in my SSIS package. The request has custom complex data type as the parameter. As has been pointed out in this forum before, the Web Service Task only lets you assign the outside parameter from a variable, not the internal parameters needed to create the complex data type.
To be more specific, the web service input wants a 'ContactSearchRequest' parameter. I can assign this from a variable. If I click on the 'value' field under the 'Input' section for the web service task, it shows me that the 'ContactSearchRequest' data type is made up of the following:
contactId - long
numResults - int
offset - int
passKey - string
searchParam - string
sortType - int
Unfortunately, I can't assign these internal parameters from a variable, at least not through the web service task interface.
My next thought was to create a variable of type 'object' and then set it in a script task prior to calling the web service task. However, I'm not sure exactly how to do this. How will my script know about the class definition of 'ContactSearchRequest'? Do I just create a class called 'ContactSearchRequest'?
I've used this same web service in a .NET C# project and after I imported the web service, visual studio knew all about the custom data types. How do I do something similar in SSIS?
Of course, the easiest solution would for Integration Service to allow me to set those internal parameters via variables, but we're apparently not there yet.
Any suggestions?
Thanks,
TreyHi All,
I am trying to pull the data from a webservice. The method expects 5 parameters out of which one is a complex type. And it is fine to pass Null value for this parameter.
The method expects a complex data type UrlReportFilter
as follows:
<simpleType name="UrlReportFilterOperatorEnum">
<restriction base="xsd:string">
<enumeration value="contains"/>
<enumeration value="starts_with"/>
<enumeration value="ends_with"/>
<enumeration value="not_contains"/>
<enumeration value="not_starts_with"/>
<enumeration value="not_ends_with"/>
<enumeration value="match_regular_expression"/>
<enumeration value="not_match_regular_expression"/>
<enumeration value="exact_match"/>
</restriction>
</simpleType>
<complexType name="UrlReportFilter">
<sequence>
<element name="caseSensitive" type="xsd:boolean"/>
<element name="operand" nillable="true" type="xsd:string"/>
<element name="operator" nillable="true" type="akaaimsdt:UrlReportFilterOperatorEnum"/>
</sequence>
</complexType>
How to assign values and use this in VB.NET code?
I am using following code to assign the values to the properties in VB.NET code in Script task but it is throwing the error below:
Dim vUrlFilter As New Akamine.UrlReportFilter With {.caseSensitive = False, .operand = ""}
Error: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Web.Services.Protocols.SoapException: AWSFault:Error in processing:(com..aws.services.exceptions.InvalidColumnException: Invalid column:
for report:H
Any help on this would be appreciated!!
Thanks,
Ruby
Thanks & Regards -
Issue with SOAP Adapter calling a Web Service
I have built the Scenario outlined in the webblog https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/3408. [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken]
I received the following error message in XI Monitoring:
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
- <!-- Aufruf eines Adapters
-->
- <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="1">
<SAP:Category>XIAdapter</SAP:Category>
<SAP:Code area="PARSING">ADAPTER.SOAP_EXCEPTION</SAP:Code>
<SAP:P1 />
<SAP:P2 />
<SAP:P3 />
<SAP:P4 />
<SAP:AdditionalText>soap fault: System.Web.Services.Protocols.SoapException: Server was unable to process request. ---> System.Data.SqlClient.SqlException: Procedure or Function 'Research_GetCompanyIndustry' expects parameter '@Symbol', which was not supplied. at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection) at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection) at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj) at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj) at System.Data.SqlClient.SqlDataReader.ConsumeMetaData() at System.Data.SqlClient.SqlDataReader.get_MetaData() at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString) at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method) at System.Data.SqlClient.SqlCommand.ExecuteReader() at Invesbot.WebService.StockQuotes.GetQuote(String symbol) in c:Inetpubvhostsinvesbot_comwsApp_CodeStockQuotes.cs:line 81 --- End of inner exception stack trace ---</SAP:AdditionalText>
<SAP:ApplicationFaultMessage namespace="" />
<SAP:Stack />
<SAP:Retry>M</SAP:Retry>
</SAP:Error>
I checked the SOAP Adapter which is green. I also checked the webblogs in the XI Forum concerning similar error messges as it doesn't seem to be a new problem. But I didn't find an answer to my issue.
Anybody any idea what could be the issue in this case.
Thanks in advance.
AlexHi Alex,
in the mentioned weblog a web service "Distance" is used, but your monitor entry say, that you call the web service "StockQuotes". So I think you have put a wrong URL in your receiver SOAP adapter.
The error comes from the web service server. It says that the request message is wrong. The element "Symbol" is missing.
Regards
Stefan -
Hi All,
We are configuring RFC->XI->Web Services scenario.
We are using SOAP adapter in the receiver side. We are getting the following error message.
soap fault: System.Web.Services.Protocols.SoapException: Server did not recognize the value of HTTP Header SOAPAction: ConversionRate. at System.Web.Services.Protocols.Soap11ServerProtocolHelper.RouteRequest() at System.Web.Services.Protocols.SoapServerProtocol.Initialize() at System.Web.Services.Protocols.ServerProtocolFactory.Create(Type type, HttpContext context, HttpRequest request, HttpResponse response, Boolean& abortProcessing).
Kindly help.Hi,
Quick checks-
1) Reciever SOAP Adapter configuration
2) Check the Target URL - it should be wsdl URL
3) Transport protocol used (HTTP)
Check this blog about SOAP Adapter Configuration carefully-
/people/shabarish.vijayakumar/blog/2006/03/28/rfc--xi--webservice--a-complete-walkthrough-part-2
http://help.sap.com/saphelp_nw2004s/helpdata/en/29/5bd93f130f9215e10000000a155106/content.htm
Regards,
Moorthy -
i have developed a very small web service and which is hosted along with our web site. our webservice url is
http://www.bba-reman.com/Search/SearchDataIndex.asmx
web service code
namespace WebSearchIndex
#region SearchDataIndex
/// <summary>
/// SearchDataIndex is web service which will call function exist in another library for part data indexing
/// </summary>
[WebService(Namespace = "http://tempuri.org/")]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
[System.ComponentModel.ToolboxItem(false)]
// To allow this Web Service to be called from script, using ASP.NET AJAX, uncomment the following line.
// [System.Web.Script.Services.ScriptService]
public class SearchDataIndex : System.Web.Services.WebService
//public AuthHeader ServiceAuth=null;
public class AuthHeader : SoapHeader
public string Username;
public string Password;
#region StartIndex
/// <summary>
/// this function will invoke CreateIndex function of SiteSearch module to reindex the data
/// </summary>
[WebMethod]
public string StartIndex(AuthHeader auth)
string strRetVal = "";
if (auth.Username == "Admin" && auth.Password == "Admin")
strRetVal = SiteSearch.CreateIndex(false);
else
SoapException se = new SoapException("Failed : Invalid credentials",
SoapException.ClientFaultCode,Context.Request.Url.AbsoluteUri,new Exception("Invalid credentials"));
throw se;
return strRetVal;
#endregion
#endregion
when i was calling that web service from my win apps using
HttpWebRequest
class then getting error The remote server returned an error: (500) Internal Server Error
here is code of my win apps from where i am calling web service
string strXml = "";
strXml = "<s:Envelope xmlns:s='http://schemas.xmlsoap.org/soap/envelope/'><s:Body><StartIndex xmlns='http://tempuri.org/' xmlns:i='http://www.w3.org/2001/XMLSchema-instance'><auth><Username>joy</Username><Password>joy</Password></auth></StartIndex></s:Body></s:Envelope>";
string url = "http://www.bba-reman.com/Search/SearchDataIndex.asmx";
HttpWebRequest req = (HttpWebRequest)WebRequest.Create(url);
req.Method = "POST";
req.ContentType = "text/xml";
req.KeepAlive = false;
req.ContentLength = strXml.Length;
StreamWriter streamOut = new StreamWriter(req.GetRequestStream(), System.Text.Encoding.ASCII);
streamOut.Write(strXml);
streamOut.Close();
StreamReader streamIn = new StreamReader(req.GetResponse().GetResponseStream());
string strResponse = streamIn.ReadToEnd();
streamIn.Close();
i am just not being able to understand when this line execute
StreamReader streamIn = new StreamReader(req.GetResponse().GetResponseStream());
then getting the error The remote server returned an error: (500) Internal Server Error
not being able to understand where i made the mistake. mistake is in the code of web service end or in calling code?
help me to fix this issue. thanksHi Mou,
I just tried your win app code about calling web service, but failed. I got the 500 error after I called your service:
The error message I quoted from Fiddler:
<?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Body><soap:Fault><faultcode>soap:Client</faultcode><faultstring>System.Web.Services.Protocols.SoapException: Failed : Invalid credentials ---> System.Exception: Invalid credentials
--- End of inner exception stack trace ---
at BBAReman.WebSearchIndex.SearchDataIndex.StartIndex(AuthHeader auth)</faultstring><faultactor>http://www.bba-reman.com/Search/SearchDataIndex.asmx</faultactor><detail /></soap:Fault></soap:Body></soap:Envelope>
I am not totally sure that error occurred by the authentication. But I suggest you can try to add this service into your project using this method below:
1.right click the Reference and select Add Service Reference
2.input your service link and click "Go"
And you can use this service as the following:
private async void callService()
ServiceReference1.SearchDataIndexSoapClient client =new ServiceReference1.SearchDataIndexSoapClient();
var Str= await client.StartIndexAsync(new ServiceReference1.AuthHeader { Username = "Admin", Password = "Admin" });
Please try it.
Regards,
Will
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. -
Hi everybody
I'm trying to query a web service like that on http://www.webservicex.net/stockquote.asmx
and I'm using axis-1_4 API but without success!
I wrote a class with this code:
Call call = (Call)service.createCall();
call.setTargetEndpointAddress(new URL("http://www.webservicex.net/stockquote.asmx"));
call.setUseSOAPAction(true);
call.setSOAPActionURI("http://www.webserviceX.NET");
call.setOperationName( "GetQuote");
String ret = (String)call.invoke(new Object[]{ "FORD" });
System.out.println("output returned: " + ret);
The response is:
RemoteException System.Web.Services.Protocols.SoapException: Server did not recognize the value of HTTP Header SOAPAction: http://www.webserviceX.NET.
at System.Web.Services.Protocols.Soap11ServerProtocolHelper.RouteRequest()
at System.Web.Services.Protocols.SoapServerProtocol.Initialize()
at System.Web.Services.Protocols.ServerProtocolFactory.Create(Type type, HttpContext context, HttpRequest request, HttpResponse response, Boolean& abortProcessing)
AxisFault
faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Client
faultSubcode:
faultString: System.Web.Services.Protocols.SoapException: Server did not recognize the value of HTTP Header SOAPAction: http://www.webserviceX.NET.
at System.Web.Services.Protocols.Soap11ServerProtocolHelper.RouteRequest()
at System.Web.Services.Protocols.SoapServerProtocol.Initialize()
at System.Web.Services.Protocols.ServerProtocolFactory.Create(Type type, HttpContext context, HttpRequest request, HttpResponse response, Boolean& abortProcessing)
Have I forget to set some other property to the object Call or other reason?
If anybody have had the some problem can help me?
Thanks in advance
GianniI have found that the older Axis 1.x has some issues talking to anything .NET. My first suggestion would be to go to the latest, which I believe is Axis 2.0. I have some clients that consume my webservices with .NET, and I remember I had to change the messaging type to get it to work...big pain in the rear.
Maybe you are looking for
-
It seem that while updating to Firefox 28 from 27, my computer was unplugged. After it restarted, Firefox seem fine, but no websites would load only on Firefox. I have tried removing Firefox completely, including registry files then re-installing. I
-
how can my daughter and i have our own itunes accounts on one computer because it automatically logs in with mine?
-
How do i add a number in a cell which is already formatted
how do i add a number in a cell which is already formatted
-
Migration Assistant Manual?
I haven't found a Migration Assistant Manual... is there one? I will soon be getting a Macbookpro. I would like to transfer files from a 700 MHZ G3 Ibook. Right now the IBook has an external firewire drive that has a bootable backup of the Ibook's ha
-
Preview doesn't launch when I double-click a previewed photo in finder
Just noticed today that when I preview a photo in the finder by clicking on the spacebar, I'm unable to double click it so that it launches in the Preview application. I don't remember fiddling with anything before this, and it was okay several weeks