Problem Testing Webservices
Hi,
i have created a webservice and am trying to test it using "test Webservices" option in jdev 11.
When i run it, following is the error i get. I need help resolving it .
[Starting OC4J using the following ports: HTTP=8988, RMI=23891, JMS=9227.]
D:\Jdev\system11.1.1.0.20.46.84\o.j2ee\embedded-oc4j\config>
D:\Jdev\jdk\bin\javaw.exe -client -classpath D:\Jdev\j2ee\home\oc4j.jar -Xverify:none -XX:MaxPermSize=256m -DcheckForUpdates=adminClientOnly -Doracle.application.environment=development -Doracle.j2ee.dont.use.memory.archive=true -Doracle.j2ee.http.socket.timeout=500 -Doc4j.jms.usePersistenceLockFiles=false -Djava.security.policy=D:\Jdev\system11.1.1.0.20.46.84\o.j2ee\embedded-oc4j\config\java2.policy oracle.oc4j.loader.boot.BootStrap -config D:\Jdev\system11.1.1.0.20.46.84\o.j2ee\embedded-oc4j\config\server.xml
[waiting for the server to complete its initialization...]
WARNING: Bulk-load class 'oracle.j2ee.ejb.TimeoutExpiredException' not found in /D:/Jdev/j2ee/home/lib/oc4j-internal.jar (from <code-source> in META-INF/boot.xml in D:\Jdev\j2ee\home\oc4j.jar)
Oct 12, 2007 5:51:26 PM oracle.j2ee.util.AnnotatedLogger log
WARNING: The minimum thread pool size must be >= 2. Automatically adjusting minimum and maximum thread pool sizes.
Oct 12, 2007 5:51:31 PM com.evermind.server.XMLDataSourcesConfig parseRootNode
INFO: Legacy datasource detected...attempting to convert to new syntax.
07/10/12 17:51:33 WARNING: ApplicationServer.enableOC4JDocumentChangeNotifier Alternate DocumentChangeNotifier in use!
07/10/12 17:51:58 java.net.ConnectException: Connection timed out: connect
07/10/12 17:51:58 at java.net.PlainSocketImpl.socketConnect(Native Method)
07/10/12 17:51:58 at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
07/10/12 17:51:58 at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
07/10/12 17:51:58 at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
07/10/12 17:51:58 at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
07/10/12 17:51:58 at java.net.Socket.connect(Socket.java:519)
07/10/12 17:51:58 at java.net.Socket.connect(Socket.java:469)
07/10/12 17:51:58 at java.net.Socket.<init>(Socket.java:366)
07/10/12 17:51:58 at java.net.Socket.<init>(Socket.java:208)
07/10/12 17:51:58 at oracle.jdevimpl.runner.oc4j.Oc4jNotifier.sendMessage(Oc4jNotifier.java:91)
07/10/12 17:51:58 at oracle.jdevimpl.runner.oc4j.Oc4jNotifier.postDeploy(Oc4jNotifier.java:75)
07/10/12 17:51:58 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
07/10/12 17:51:58 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
07/10/12 17:51:58 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
07/10/12 17:51:58 at java.lang.reflect.Method.invoke(Method.java:585)
07/10/12 17:51:58 at oracle.j2ee.util.ServerLifecycleClasses.invoke(ServerLifecycleClasses.java:65)
07/10/12 17:51:58 at oracle.j2ee.util.StartupClasses.executeExternalPostDeploy(StartupClasses.java:52)
07/10/12 17:51:58 at oracle.j2ee.util.StartupClasses.postDeploy(StartupClasses.java:69)
07/10/12 17:51:58 at com.evermind.server.ApplicationServer.setConfig(ApplicationServer.java:1247)
07/10/12 17:51:58 at com.evermind.server.ApplicationServerLauncher.run(ApplicationServerLauncher.java:129)
07/10/12 17:51:58 at java.lang.Thread.run(Thread.java:595)
07/10/12 17:52:02 Oracle Containers for J2EE 10g (11.1.1.0.0) initialized
Regards
Ashish
In Overview of service in SOAMANAGER you have
Open porttype WSDL document
Open WSDL document for selected binding
Open Web Service navigator for selected binding
The WSDL is a xml file so if you click second link is correct you get xml page. If you want to test the service giving it an input you have to click on third link.
For what about no entry in WSADMIN, I am facing this issue too, but I think it's normal because the complete management of the web service should migrate to SOAMANAGER, being obsolete WSADMIN.
regards
gabriele
Similar Messages
-
Hello,
i have some Problems with WebServices.
When I call my function how makes the request (get_frob), it goes back to the main program and make a print! After that my request starts!
I want that the request finished first and then make a print!
I need threats for this???and how does it work?
My englisch is not so good I´m sorry for that!
Please help me
Thanks
Chris
def Button_Autorisieren:SwingButton=SwingButton{
text:"Autorisieren"
width:100
translateY:150
action:function()
var Authentication:HTTP_Authentication=new HTTP_Authentication();
Authentication.get_frob();
java.lang.System.out.println(Authentication.abfrage);
public class HTTP_Authentication {
var api_key:String="***********";
var secret_key:String="***********";
var stat:String;
var sig:String;
var frob:String;
var method:String;
var md5_String:String;
var perms:String;
var api_sig:String;
public var abfrage:Boolean;
public var link:String;
def md5:MD5=new MD5();
var parser = PullParser{
documentType: PullParser.XML;
onEvent: function(event: Event) {
if (event.type == PullParser.START_ELEMENT ) {
if(event.qname.name == "rsp" and event.level==0)
stat=event.getAttributeValue(QName{name:"stat"});
if (stat=="ok")
if(event.type==PullParser.END_ELEMENT)
if(event.qname.name == "frob")
frob=event.text;
java.lang.System.out.println("Frob: {frob}");
abfrage=true;
public function get_frob ()
method="flickr.auth.getFrob";
md5_String="{secret_key}api_key{api_key}method{method}";
java.lang.System.out.println(md5_String);
sig=md5.makeMD5(md5_String);
java.lang.System.out.println(sig);
var request = HttpRequest {
location: "http://api.flickr.com/services/rest/?method={method}&api_key={api_key}&api_sig={sig}"
method: HttpRequest.GET
onInput: function(input: java.io.InputStream)
parser.input=input;
parser.parse();
input.close();
}.enqueue();
}Hello,
thank you for your answer. It was my mistake, I discribe the problem very bad.
When i call the function get_frob(). Netbeans goes in the function and run through the end but nothing happened
onMouseClicked: function( e: MouseEvent ):Void {
test=Authentikation_Frob.get_frob();and in my if clausel there will be a wrong output! After the output my programm go back to the function get_frob() and then make the request and go back to the if clausel. Now everything ist correct. But why does my programm need 2 runs ????thats not correct!!
Thank you!!
if (test==true)
var Authentikation_Link:HTTP_Authentication_Link=new HTTP_Authentication_Link();
link=Authentikation_Link.get_link();
var uri = new java.net.URI("{link}");
var desktopClazz = java.lang.Class.forName("java.awt.Desktop");
var getDesktopMethod = desktopClazz.getMethod("getDesktop");
var desktop = getDesktopMethod.invoke(null);
var browseMethod = desktopClazz.getMethod("browse", [uri.getClass()] as java.lang.Class[]);
browseMethod.invoke(desktop, uri);
else
fehler_ausgabe.visible=true;
fehler_ausgabe.content="Fehler {Authentikation_Frob.frob_fehler} {Authentikation_Frob.frob_hilfe}";
}Edited by: Esco24 on Aug 10, 2009 1:02 AM -
Problem accessing Webservices from Flex
Hi All,
I have created a Webservice in Abap and configured it using
SOAMANAGER transaction. I am able to succesfully test the Web serivice which I have created in 'Soamanager ' transaction.
But when I am calling this Webservice from Flex application I am getting an error as " FAULT : faultCode:WSDLError faultString:'Runtime exception Error #1009' faultDetail:'null' "
We tried calling the Webservice outside SAP from the FLex application, it is working fine.
Please let me know how to rectify this error . It's an urgent requirement.
Thanks and regards,
Uma.hi
when you create your destinations for your webservices in the SOAMANAGER-> Destination Template
you would be providing wsdl url and destination , and in the below you can
find the username and pwd that need to set , you need to select the radio buttons with logon tickets ,
username , password , there , re-check the username and pwd by selecting the radio button with selecting the
radio button username password , and even check the webservice in the WSNAVIGATOR , whether its working
fine , and other thing is there is situation where your webservice may work fine inthe wsnavigator even then there would
be some problem inthe webservice , even check this scenario.
Thanks -
Not able to test webservice through enterprise manager
Hi All,
We have deployed few composites. Deployment was successful. but when we try to test the service using "Test" button in the composite. we are getting an error below the WSDL URL in the Test Webservice page.
Following is the error:
Either the WSDL URL is invalid or the WSDL file is not valid or incorrect. - oracle.sysman.emas.sdk.wsm.WsmServiceAccessException: Cannot locate service: oracle.wsm.policymanager.IPolicyService
I'm able to open the WSDL in browser. We dont have any OWSM policlies set for any of the composites.
When i use the WSDL URL in a partner link, the operation and other properties getting loaded, i/p and o/p elements of the WSDL also getting retrieved.
SOA version: 11.1.1.6
This is applicable for all composites we deployed.
Please help us in resolving this issue.
Regards,
Terry
Edited by: 965185 on Oct 16, 2012 2:05 AMIn my case issue got resolved after I added java.naming.provider.url
Steps:
Log into EM then select the domain in use and use the following the menu path, WebLogic Domain> Web Services > Platform Policy Configuration
From there, select the Policy Accessor tab., then click Add to add a property.
In the Add Property window, specify the following values:
In the Name field, enter this property: java.naming.provider.url
Value: t3://<hostname1>:<port_number>,<hostname2>:<port_number> -
Problem creating webservice from existing code in sjse8
I have a java class with three methods in an enterprise app (no ejbs) that I want to expose with webservice. In sudio5 I had no problem with webservice creation but in studio8 when I chose "From scratch, Use existing code", it gives me the opting to go to my class and select those methods. When I click finish, it generates an Implementation class that has declaration for my java class repeated 3 times which is obviously wrong and under it says:
// Enter web service operations here. (Popup menu: Web Service->Add Operation)
The class is empty.
I choose "rpcliteral", "strict", "useonewayoperations" and "donotoverride" under web module property / webservice.
And as you can guess it generates a wsdl file with no webservice methods info.
I have and am checking all forums and searching different sites but haven't fond anything yet.
I appreciate any help resolving this issue.Seems this feature doesn't work properly in jse and completely removed from latest nb55 enterprise pack (only session enterprise bean case remain)
-
Merging WSDL and sending it to a test webservice
Hi All,
I have four wsdl to merge into a single wsdl and import into XI and use
it a source data type. The wsdl contains different namespaces in it.
Could anyone guide me the procedure step-by-step to do it. Any help is really appreciated. Can I send the merged wsdl through XML spy to a test webservice and test it. How can i create a test webservice to test it.
Thanks
MichaelHi,
To merging, using xml spy you can try it out.
To Test a Webservice refer this blog-
/people/siva.maranani/blog/2005/03/01/testing-xi-exposed-web-services
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/d23cbe11-0d01-0010-5287-873a22024f79
Hope this helps,
Regards,
Moorthy -
Hello everyone,
I'm having problems testing my feed on iTunes, I can subscribe to it, but it doesn't download the episodes, when I try to download it gives me the following error:
"There are no playable episodes. the URL might point to text-only episodes, or contain file types that iTunes cannot play"
Which is very confusing because I followed Apple's guideliness to encode my M4V videos and I tested the feed with other validators and it passed.
My feed is at: http://blog.menstyledigest.com/feed.xml
I've looked all over for a solution to my problem but couldn't find any help so I'm hoping somebody here can help me.
Thanks in davance,
RGThe URL of the media file for each episode is carried in the 'enclosure' tag within each set of 'item' tags. Here is one of yours:
<enclosure url="http://blog.menstyledigest.com/index.html" length="8858464" type="video/x-m4v" />
You've linked to a web page: you need to link directly to the media file itself. -
Testing problem in webservices
hi experts , i creating my first webservice for the function module . i created the WebServices using Tcode SOAMANAGER , i had created the
Service definition .
confgured the web services .
and the as per the steps in the belowed link
[http://help.sap.com/saphelp_nw70/helpdata/en/0d/2eac5a56d7e345853fe9c935954ff1/frameset.htm]
i had tested my webservice .but when i click the Open WSDL document for selected binding i am just getting the webpage with the XML coding . my problem is where can i give my input parameters and test my web services .
and also in WSADMIN my webservice name is not listed .
regards
chinnaiya
Edited by: chinnaiya pandiyan on Apr 25, 2009 5:59 PMIn Overview of service in SOAMANAGER you have
Open porttype WSDL document
Open WSDL document for selected binding
Open Web Service navigator for selected binding
The WSDL is a xml file so if you click second link is correct you get xml page. If you want to test the service giving it an input you have to click on third link.
For what about no entry in WSADMIN, I am facing this issue too, but I think it's normal because the complete management of the web service should migrate to SOAMANAGER, being obsolete WSADMIN.
regards
gabriele -
Problem in testing webservice.
Hi Folks ,
I have a SOAP to RFC scenario. I created wsdl from my integration directory and trying to test it using Altova xml spy .. But I am getting error
http error : couldnot post file .
My soap request is like
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<SOAP-ENV:Body>
<GetCustomerInformation Version="1.0">
<CustomerID>12</CustomerID>
<CustomerEmail></CustomerEmail>
</GetCustomerInformation>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
and my URl which i created is
http://ymq-msdevpi1:55000/XISOAPAdapter/MessageServlet?senderService=OLS& interface=SI_Customerinfo_OB&receiverService=ECDCLNT230&interfaceNamespace=urn:sap-com:document:sap:rfc:functions
please help !!
thnx
NinadThe URL which you are using is incorrect....the channel name is missing:
http://ymq-msdevpi1:55000/XISOAPAdapter/MessageServlet?senderService=OLS& interface=SI_Customerinfo_OB&receiverService=ECDCLNT230&interfaceNamespace=urn:sap-com:document:sap:rfc:functions
below is the required URL format
http://<hostname OR IP addr>:<portno>/XISOAPAdapter/MessageServlet?channel=:<SenderService>:<SenderSOAPCC>&version=3.0&Sender.Service=<senderService>&Interface=<senderNamespace>%5E<senderMI>
Regards,
Abhishek. -
Error while testing webservice using SOAP
Hi,
While i was testing my published webservice using soap-ui it gave me following error,
<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>Internal SOAP Processing Failure</faultstring>
<detail/>
</soap:Fault>
</soap:Body>
</soap:Envelope>
and in the event log i can see a event as follows and there is no warning or error
Upon investigation i got to know the following steps might solve the problem..i.e..
- Is the receive location for the SOAP webservice enabled? - YES
- Can you browse to (the WSDL of) the webservice? Is displayed correctly? -YES
- Is the webservice configured to run in the correct application pool? -YES
-The user under which application pool is running have the read/write permission on the %temp% folder.-Dont Know how to check
-In IIS,Check the identity of the application pool on which Web service is running and make sure that the user is the member of both “IIS_WPG” and “BizTalk Isolated host users”.
-DONT Know how to check
Please Help me in guiding me in the last two points
and if there are any other solutions for this..
Thanks,
Sarva.You mentioned you checked that the webservice is configured under correct application pool. you can find the user under which the application pool is configured (open iis- > select application pools -> find out the "Identity column" to
know the user for your application pool.
-The user under which application pool is running have the read/write permission on the %temp% folder.-Dont Know how to check
Go to run -> type "%temp%" -> Go one step back -> Right click to the folder -> Properties -> Security -> check the application pool user is present under "Group or user names"
-In IIS,Check the identity of the application pool on which Web service is running and make sure that the user is the member of both “IIS_WPG” and “BizTalk Isolated host users”.
-DONT Know how to check
Refer How to Add Service Account to the IIS_WPG Group to add your application pool user under IIS_WPG. Also similar activity to add your service account to "BizTalk Isolated
host users" if it is local groups. Or Ask your network support team if "BizTalk Isolated host users" is domain group.
Please Help me in guiding me in the last two points
and if there are any other solutions for this..
Thanks,
Sarva.
Your event viewer might have more information pointing exactly what is causing "Internal SOAP processing failure".
Also refer this
which might be helpful for you.
If this answers your question please mark it as Answer and if this post is helpful, please vote as helpful. Thanks ! -
Problem in Webservice-XI-JDBC scenario
Hi Experts,
I am working on webservice - XI - JDBC Synchronous scenario. I have done with SLD, IR, ID, WSDL file creation.
When I tried to test the scenario thro' Webservice Studio, I am getting the following error. This error comes, once I give the request value.
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.
Exception Text **************
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.InvalidOperationException: Client found response content type of 'text/html', but expected 'text/xml'.
The request failed with the error message:
td {font-family : Arial, Tahoma, Helvetica, sans-serif; font-size : 14px;}
A:link
A:visited
A:active
401 Unauthorized
If you come across this type of issues, then please help me to solve it.
Regards
Sara
Message was edited by:
Sara DHi Bhavesh,
As per the blog, I have done the username & pwd setup..but still getting the "401 Unauthorized". Could you please tell me, what could be the problem?
Here is the full error trace.
Exception Text **************
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.InvalidOperationException: Client found response content type of 'text/html', but expected 'text/xml'.
The request failed with the error message:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>Error Report</title>
<style>
td {font-family : Arial, Tahoma, Helvetica, sans-serif; font-size : 14px;}
A:link
A:visited
A:active
</style>
</head>
<body marginwidth="0" marginheight="0" leftmargin="0" topmargin="0" rightmargin="0">
<table width="100%" cellspacing="0" cellpadding="0" border="0" align="left" height="75">
<tr bgcolor="#FFFFFF">
<td align="left" colspan="2" height="48"><font face="Arial, Verdana, Helvetica" size="4" color="#666666"><b> 401   Unauthorized</b></font></td>
</tr>
<tr bgcolor="#3F73A3">
<td height="23" width="84"><img width=1 height=1 border=0 alt=""></td>
<td height="23"><img width=1 height=1 border=0 alt=""></td>
<td align="right" height="23"><font face="Arial, Verdana, Helvetica" size="2" color="#FFFFFF"><b>SAP J2EE Engine/7.00 </b></font></td>
</tr>
<tr bgcolor="#9DCDFD">
<td height="4" colspan="3"><img width=1 height=1 border=0 alt=""></td>
</tr>
</table>
<br><br><br><br><br><br>
<table width="100%" cellspacing="0" cellpadding="0" border="0" align="left" height="75">
<tr bgcolor="#FFFFFF">
<td align="left" colspan="2" height="48"><font face="Arial, Verdana, Helvetica" size="3" color="#000000"><b> No login module succeeded.</b></font></td>
</tr>
<tr bgcolor="#FFFFFF">
<td align="left" valign="top" height="48"><font face="Arial, Verdana, Helvetica" size="2" color="#000000"><b> Details:</b></font></td>
<td align="left" valign="top" height="48"><font face="Arial, Verdana, Helvetica" size="3" color="#000000"><pre> No details available</pre></font></td>
</tr>
</body>
</html>
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 MI_OutboundService.MI_Outbound(DT_REQUEST MT_REQUEST)
--- 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 WebServiceStudio.MainForm.InvokeWebMethod()
at WebServiceStudio.MainForm.buttonInvoke_Click(Object sender, EventArgs e)
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
at System.Windows.Forms.Button.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
Regards
Sara
Message was edited by:
Sara D -
Error testing Webservice in XMLSPY
Hello guys,
I have a scenario Webservice -> XI -> Proxy Synchronous.
I have created the webservice, and the URL is correct. I have a problem in the proxy because is expecting the Message Type and in the XML appears the name of Message Interface.
I have the next XML in XI:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<!-- Call Adapter -->
<m:I_Consult xmlns:m="http:/xxxxxxx" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/">
<FIELD1>String</FIELD1>
<FIELD2>String</FIELD2>
</m:I_Consult>
And the message I have in XMLSPY is a Parse Error. In XI monitoring I see the next error:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<!-- Inbound Message -->
<SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="1">
<SAP:Category>XIProxy</SAP:Category>
<SAP:Code area="ABAP">PARSE_APPLICATION_DATA</SAP:Code>
<SAP:P1>Request Message</SAP:P1>
<SAP:P2>CX_ST_MATCH_ELEMENT</SAP:P2>
<SAP:P3>/1SAI/TXS4C324AF6BDD9E4AD352A</SAP:P3>
<SAP:P4>XML Bytepos.: 304 XML Path: m:I_Consult(1) Error Text: Elemento MConsult previsto</SAP:P4>
<SAP:AdditionalText/>
<SAP:ApplicationFaultMessage namespace=""/>
<SAP:Stack>Error during XML => ABAP conversion (Request Message; error ID: CX_ST_MATCH_ELEMENT; (/1SAI/TXS4C324AF6BDD9E4AD352A XML Bytepos.: 304 XML Path: m:I_Consult(1) Error Text: Elemento MConsult previsto))
Elemento MConsult previsto
</SAP:Stack>
<SAP:Retry>M</SAP:Retry>
</SAP:Error>
The text is in spanish, but I the problem is that R/3 is waiting MConsult (Message Type) despite of I_Consult (Message Interface).
In R/3 I am using the sentence INPUT-MConsult-FIELD1, so I understand that is waiting MConsult in the calling, but I don't understand why when I create the SOAP request in XMLSPY it doesn't appear.
I think all is created correctly in XI including SOAP adapter, and when I define the Webservice i put the message I_Consult with his namespace and I download the WSDL created.
When I test the WSDL in XMLSPY I have this error.
Do you know if I have to do some changes in the WSDL in XMLSPY before to send the SOAP request? I have no access to the WSNAVIGATOR so I can't do the test in this part.
Many thanks in advance.
Regards,
Xavi.Hello guys,
now is running, because I have created a message mapping.
But theoretically if the message from the webservice is the same that goes to the proxy it wouldn't be necessary to create the mapping isn't it?
I don't understand why if I create the mapping is running, and if I do without it is not running because the message send by SOAP is the same and the message types are identhical. Somebody can explain it?
Many thanks.
Regards,
Xavi. -
Problem with Webservice - XI - JDBC scenario
Hi Experts,
When I have tried to test the Webservice -> XI -> JDBC scenario with the mention address, I am getting the below error.
<b>Address :</b> http://<Host>:50100/XISOAPAdapter/MessageServlet?channel=:WEB_SERVICE:SOAP_CC&version=3.0&Sender.Service=WEB_SERVICE&Interface=http%3A%2F%2Fatl.com%2Ftar%5EMI_Outbound
<b>Error:</b>
<s:SystemError xmlns:s="http://sap.com/xi/WebService/xi2.0">
<context>XIAdapter</context>
<code>RecoverableException</code>
<text><![CDATA[
com.sap.aii.af.ra.ms.api.RecoverableException: com.sap.aii.af.ra.ms.api.DeliveryException: Application:EXCEPTION_DURING_EXECUTE:
at com.sap.aii.af.mp.soap.ejb.XISOAPAdapterBean.process(XISOAPAdapterBean.java:919)
at com.sap.aii.af.mp.module.ModuleLocalLocalObjectImpl3.process(ModuleLocalLocalObjectImpl3.java:103)
at com.sap.aii.af.mp.ejb.ModuleProcessorBean.process(ModuleProcessorBean.java:258)
JDBC Part works fine only problem with the SOAP sender side. Any suggestion please..
Regards
Sara
Message was edited by:
Sara DHi,
As per Bhavesh & Krishna's suggestion, I have changed the JDBC Data type. Now I could able to see the SXMB_MONI error too.
Latest error:
When I have tried to test the scenario using xmlApy, I am getting the below error.
<b>RWB error:</b>
2007-06-21 03:04:24 Success Receiver JDBC adapter: processing started; QoS required: BestEffort
2007-06-21 03:04:24 Success JDBC adapter receiver channel DB_CC: processing started; party , service DB_SERVICE
2007-06-21 03:04:24 Error Unable to execute statement for table or stored procedure. 'Address' (Structure 'STATEMENT') due to java.sql.SQLException: FATAL ERROR document format: structure 'STATEMENT', no key element found
<b>xmlSpy Error:</b>
<context>XIAdapter</context>
<code>RecoverableException</code>
<text><![CDATA[
com.sap.aii.af.ra.ms.api.RecoverableException: com.sap.aii.af.ra.ms.api.DeliveryException: XIAdapterFramework:GENERAL:com.sap.aii.af.ra.ms.api.DeliveryException: Error processing request in sax parser: Error when executing statement for table/stored proc. 'Address' (structure 'STATEMENT'): java.sql.SQLException: FATAL ERROR document format: structure 'STATEMENT', no key element found
at com.sap.aii.af.mp.soap.ejb.XISOAPAdapterBean.process(XISOAPAdapterBean.java:919)
at com.sap.aii.af.mp.module.ModuleLocalLocalObjectImpl3.process(ModuleLocalLocalObjectImpl3.java:103)
at com.sap.aii.af.mp.ejb.ModuleProcessorBean.process(ModuleProcessorBean.java:258)
I have mapped the EmpId in the mapping as well as in the DB the EmpId is Primary Key. Could you please tell me,what I am missing here?
Regards
Sara
Message was edited by:
Sara D -
Problem testing WebMethod. Throwing javax.xml.bind.JAXBException
Hi guys,
Another Newbie.
Specifications:
NetBeans5.5
Sun App Server 9.0_01 (build b02-p01)
MySQL
Problem: Not able to test run the Webmethod with webparams.
I have an entity class with some methods as shown below
public class Country {
private Integer countryID;
private ServerDatabaseInteraction di;
private String countryName;
/** Creates a new instance of Country */
public Country(ServerDatabaseInteraction di) {
this.di = di;
* Creates a new instance of Country with the specified values.
* @param countryID the countryID of the Country
public Country(Integer countryID) {
this.countryID = countryID;
* Creates a new instance of Country with the specified values.
* @param countryID the countryID of the Country
* @param countryName the countryName of the Country
public Country(Integer countryID, String countryName, ServerDatabaseInteraction di) {
this.di = di;
this.countryID = countryID;
this.countryName = countryName;
* Gets the countryID of this Country.
* @return the countryID
public Integer getCountryID() {
return this.countryID;
* Sets the countryID of this Country to the specified value.
* @param countryID the new countryID
public void setCountryID(Integer countryID) {
this.countryID = countryID;
* Gets the countryName of this Country.
* @return the countryName
public String getCountryName() {
return this.countryName;
* Sets the countryName of this Country to the specified value.
* @param countryName the new countryName
public void setCountryName(String countryName) {
this.countryName = countryName;
public void insert() throws SQLException {
di.update("INSERT INTO Country (CountryName) VALUES ('"+getCountryName()+"')");
public ArrayList list() throws SQLException {
ArrayList queryAL = new ArrayList();
ResultSet rs = di.queryToResultSet("SELECT CountryID, CountryName FROM Country");
while(rs.next()) {
String temp = rs.getInt(1)+"#"+rs.getString(2);
queryAL.add(temp);
return queryAL;
} then I created a Web service having two methods as follows
@WebService
public class CountryWS {
ServerDatabaseInteraction di;
Country country;
public CountryWS() {
try {
di = new ServerDatabaseInteraction();
} catch (Exception ex) {
ex.printStackTrace();
country = new Country(di);
* Web service operation
@WebMethod
public ArrayList listPKobjects() {
try {
return country.list();
} catch (SQLException ex) {
ex.printStackTrace();
return null;
* Web service operation
@WebMethod
public String insert(@WebParam(name = "CountryName") String CountryName) {
// TODO implement operation
country.setCountryName(CountryName);
try {
country.insert();
return "Inserted";
} catch (SQLException ex) {
ex.printStackTrace();
return "Insert Failed";
}Now the problem is Im able to test (by right clicking on webservice from IDE) the webmethod listPKObjects but not the insert method. only difference is the second one is having webparms.
the log shows as follows..
CountryName is not a valid property on class myhost.fli.ws.jaxws.Insert
javax.xml.bind.JAXBException: CountryName is not a valid property on class myhost.fli.ws.jaxws.Insert
at com.sun.xml.ws.encoding.EncoderDecoderBase.getRawAccessor(EncoderDecoderBase.java:128)
at com.sun.xml.ws.encoding.EncoderDecoderBase.getWrapperChildValue(EncoderDecoderBase.java:81)
at com.sun.xml.ws.encoding.soap.EncoderDecoder.fillData(EncoderDecoder.java:78)
at com.sun.xml.ws.encoding.soap.ServerEncoderDecoder.toMessageInfo(ServerEncoderDecoder.java:97)
at com.sun.xml.ws.protocol.soap.server.SOAPMessageDispatcher.toMessageInfo(SOAPMessageDispatcher.java:209)
at com.sun.xml.ws.protocol.soap.server.SOAPMessageDispatcher$SoapInvoker.invoke(SOAPMessageDispatcher.java:573)
at com.sun.xml.ws.protocol.soap.server.SOAPMessageDispatcher.receive(SOAPMessageDispatcher.java:147)
at com.sun.xml.ws.server.Tie.handle(Tie.java:90)
at com.sun.enterprise.webservice.JAXWSServlet.doPost(JAXWSServlet.java:195)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:397)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:278)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:536)
at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:240)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:179)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:73)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:182)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
at com.sun.enterprise.web.VirtualServerPipeline.invoke(VirtualServerPipeline.java:120)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:939)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:137)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:536)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:939)
at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:239)
at com.sun.enterprise.web.connector.grizzly.ProcessorTask.invokeAdapter(ProcessorTask.java:667)
at com.sun.enterprise.web.connector.grizzly.ProcessorTask.processNonBlocked(ProcessorTask.java:574)
at com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.java:844)
at com.sun.enterprise.web.connector.grizzly.ReadTask.executeProcessorTask(ReadTask.java:287)
at com.sun.enterprise.web.connector.grizzly.ReadTask.doTask(ReadTask.java:212)
at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:252)
at com.sun.enterprise.web.connector.grizzly.WorkerThread.run(WorkerThread.java:75)
Caused by: javax.xml.bind.JAXBException: CountryName is not a valid property on class myhost.fli.ws.jaxws.Insert
at com.sun.xml.bind.v2.runtime.JAXBContextImpl.getElementPropertyAccessor(JAXBContextImpl.java:816)
at com.sun.xml.ws.encoding.EncoderDecoderBase.getRawAccessor(EncoderDecoderBase.java:124)
... 34 moreCan't find a reason, why one webmethod is working and the other one is not.
Any help would be much appriciated.I'm encountering the same problem, but it's very inconsistent. I've got three web services that I'm deploying. If I clean, rebuild, and redeploy, then different combinations of the three throw this error.
My specifications:
NetBeans 6.0
GlassFish v2
Oracle 10g
In browsing around online, I came across the following link which suggested to me that this issue is known and is being addressed.
https://jax-ws.dev.java.net/issues/show_bug.cgi?id=419
I discovered that the reason that I was getting this error was because my web services all had the same operation names. When I renamed my operations in each service so that they had different names, this fixed the problem.
Hope this helps!
- Erich Musick -
Problem testing JAXRPC based web services
Hello,
I have a JAXRPC based web service. The application was easily tested using earlier versions of sun java system application server.
But when I am trying to test it using sun java Application Server 9 it is showing an error.
Do I need to change some configurations?
Hope to receive solutions.
ShalmoliHi Eoin,
I had the exact problem. Struggled a lot and still couldn't figure out. I think its a problem in 8.1. Not sure. Might want to check with the support guys. If you are struck with 8.1 and still couldn't figure out, AXIS would be a option for you. Just an FYI. Thats what we are doing now.
Luckily for us we are migrating to 9.1 and I just completed a POC for doc oriented webservices in 9.1. It works like a charm.
Thanks and good luck
- Aspert
Maybe you are looking for
-
Why can't i log into my accounts on the internet it keeps going back to the log in page
my internet works fine and i like the phone but there has to be a setting or something that i am missing because any time i try to sign into any website that has a log in it just goes right back to the log in page over and over. it looks like i put
-
Disable printing selection criteria in SAP reports
Hi, Is it possible to disable the print of the selection criteria when i print an report from SAP. Now i always get an extra print and that is not usefull. thx Mark
-
Adjusting Volume Levels in Track Volume Editor Question
I have started to experiment with the track volume editor available in the track mixer ... I set some graph points and adjusted the volume of a track in various areas .. It all worked great ... Then I noticed I did not have access to the track volume
-
Syncing itunes across three different operating systems.
Hello I use itunes on my macbookpro, powerbook, and my pc desktop workstation. I would love to sync all my itunes library and playlists via wifi, is this possible? If so how could I go about syncing all my music? If there already is a relevant post i
-
Hello, someone else posted a message about this and I think its a strange coincidence. All of a sudden I started receiving all these spam messages (multiple per day) about meds, etc. Usually the others on the To and Cc list are .mac adresses... I kno