How to debugg a Web Service ? Any T-code Available?
Hi all,
I developed a ZRFC enabled function module that creates a Sales Order in CRM for both Normal Materials and Configurable materials.
The RFC works perfect and if I test it in SE37 t-code I am able to generate the Sales order with all the Characteristic values for the VC material.
Now I exposed that RFC as a Web Service by calling the web service creation wizard u2026.. and I am testing the Web Service in SOAMANGER T-code.
Now the Web Service generates the Sales Order but the configuration data is missing..i.e if I go and check the Sales order in SAP GUI..i find that the Characteristic Values are missing for the variant configurable material.
So now I created another Web Service for this RFC function module and still I encounter the same problemu2026..........
If any thing is wrong with the RFC..i know that I can debug it using the ABAP debuggeru2026but everything is perfect at RFC end u2026u2026u2026the problem is with web serviceu2026
How can I debug the web service?....can I call ABAP debugger for monitoring what is happening while I test web service in SOAMANGER t-codeu2026if so how should I do it?
Did anybody encounter this problemu2026please help me. I encountered this for the first time and I am not finding any relevant posts for this behavior of web service which is bit funny and weirdu2026
Please helpu2026.if some one has some thought on this ..as I need to figure it as as soon as possible.
Any help will be highly appreciated..
Thanks in advance
Regard,
Jessica
Hey Bhanu...Thanks a lot..
I could solve my problem...ur suggestion of seting an external break point helped me ....as from ABAP debugger i could track what was going wrong..
Once again thanks..u deserve full 10 points...
Regards,
Jessica
Similar Messages
-
How to debug ABAP Web services from Microsoft Visual Studio
When developing .NET based Web services clients using Visual Studio that call Web services in SAP NetWeaver .NET developers would like to be able to debug inside SAP. In my blog <a href="/people/andre.fischer/blog/2007/02/07/how-to-debug-abap-web-services-from-microsoft-visual-studio to debug ABAP Web services from Microsoft Visual Studio</a> I would like to point .NET developers to the fact that SAP NetWeaver offers the option of external debugging to perform this task. Though the steps that have to be performed are described in the SAP Online Help I am sure that this option is not well known amongst the .NET developer community.
Hello WilliamIV,
>>How can I "configure" Visual Studio debugger to allow validation to work?
Since I do not have a VS2012 environment, according to your provided link, I created a test demo with VS2013, however, both ways catch the validation error:
If possible, you could have a try with VS2013 to see if it works or run the example on other machine with VS2012 to see if this is caused by the VS environment, in my side, I do not change any configuration, all are default.
If I misunderstood this issue, please feel free to let me know.
Regards.
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. -
How to consume a web service provided by third party system from SAP system
Hi Friends,
Could any of you provide me a clear picture on how to consume a web service from SAP system and is provided by a third party system?
Do we get an URL to create a client proxy for consuming the web service?
Thanx in advance,
RamHi Ram,
of course you cannot supply the WSDL URL. Inside the WSDL (just view it in your browser) you find (usually but not necessary) towards the end something like
<soap:address location="http://www.weather.gov/forecasts/xml/SOAP_server/ndfdXMLserver.php"/>
which is the actual adress of the service.
An example service can be found here:
<a href="http://www.weather.gov/xml/">National Digital Forecast Database</a>
containing the WSDL URL at
<a href="http://www.weather.gov/forecasts/xml/DWMLgen/wsdl/ndfdXML.wsdl">this address</a>.
You might also want to browse for the amazon webservices which allow you to embed queries against amazon into your application.
have fun,
anton -
How to access a web service(.wsdl) from portal component.
Hi ,
Is there any document/tutorial available on how to access a webservice from portal component ?
I have found this linkhttps://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/ep/g-i/how to access a web service.htm...
but the urls in the link are not working...
i want to know the steps to access webs service and sample code if some body has already done that..
Thanks for the help.
LakshmiHi Lakshmi,
See the links below:
http://help.sap.com/saphelp_nw04/helpdata/en/f0/581140d72dc442e10000000a1550b0/content.htm
http://help.sap.com/saphelp_nw04/helpdata/en/a3/918340d990ce62e10000000a155106/content.htm
Hope this helps.
Regards,
Pooja. -
How to test swaref web service method
My simple web service method:
@WebMethod
@XmlAttachmentRef
public DataHandler getFile() {
FileDataSource file = new FileDataSource("c:\\1.gif");
DataHandler handler = new DataHandler(file);
return handler;
the generated wsdl codes:
*<xs:complexType name="getFileResponse">*
*<xs:sequence>*
*<xs:element minOccurs="0" name="file" type="swaRef:swaRef" />*
*</xs:sequence>*
*</xs:complexType>*
I always use Eclipse web service explorer to test web service, but it doesn't support swaref web service method.
Then I use axis WSDL2JAVA to generate web service client, but the generated "getFile" return type is not "DataHandler", but "org.apache.axis.types.URI".
How to test swaref web service method?
Thanks
Edited by: tomsonxu on Jan 8, 2008 7:40 AM
Edited by: tomsonxu on Jan 8, 2008 7:41 AMHello..
How did u develop the webservice?
I mean did u develop the Webservice using Enter prise Java Bean....
Wrap EJB in ear and deploy to the Server and now u can test the EJB method
whether it is working fine or not
Try these -
http://help.sap.com/saphelp_nw04s/helpdata/de/f7/af60f2e04d0848888675a800623a81/frameset.htm
Inorder to use the webservice in the Webdynpro, normally we will use the WSDL of webservice
and Import the model using any one of them
After importing as model we can use the EJB methods!
Try it !!
Thanks
Shravan -
How to wrap a Web Service around an EJB ?
Hi all!
I need to generate a WSDL file for my EJB because I need to expose them as service on the Enterprise Service Bus.
Does anybody know how to wrap a Web Service on an EJB so that I have a WSDL file for the EJB ?
Hoep I was clear
Thanks
Francesco>>Please can someone suggest if an empty SOAP request can be processed
When you are creating your Message interface,you would be using Input/Output Messages.
These are either Message Types which you would have defined or you would have got WSDL from sender system,right.
Now in these message type or WSDL if you have described your elements as occurence from 0-unbounded,it will let you pass an empty payload,but if any of the field is mandatory,it will throw an error.
Yu can not leave Input/Output Message type empty when creating Message Interface,there should be some message structure there,could be a dummy one
Thanks
Aamir -
How to create A web services step by step and their uses
How to create A web services step by step and their uses with their T-Codes
pls dont send any links
thank you
Regards,
Jagrut Bharatkumar ShuklaHi
Use the Tcode <b>WFWS</b> to create the Web service
enter the Transaction to whih you wants create the web service and save
Regards
Anji -
How to consume/access web services in forefront identity manager 2010 r2
Hi,
I have one web service in c# for authentication so i want to integrate this web service in my FIM 2010 R2.I want to ask one more question how to consume/access web service of FIM 2010 R2,so please tell me how is it possible in FIM 2010 R2 and
anybody have any example for consuming/accessing web service step by step in FIM 2010 R2.
Regards
Anil KumarHere is some C# code that accesses FIM resource attributes from the web services via the FIM 2010 Resource Management Client which I mentioned in an earlier post:
using System;
using System.Collections.Generic;
using Microsoft.ResourceManagement.Client;
using Microsoft.ResourceManagement.ObjectModel;
namespace MyTest
public partial class ResourceAttribute
public ResourceAttribute()
public string GetTypeAndDisplayName(string objectID)
String ReturnValue = String.Empty;
using (Microsoft.ResourceManagement.Client.DefaultClient client = new DefaultClient())
client.ClientCredential = CredentialCache.DefaultNetworkCredentials;
client.RefreshSchema();
string query = String.Format("/*[ObjectId={0}]", objectID);
foreach (RmResource res in client.Enumerate(query))
String displayName = res.DisplayName;
String objectType = res.ObjectType;
ReturnValue = displayName + " (" + objectType + ")";
break;
return ReturnValue;
You would just need to define your bindings and endpoints in your web.config. This method will return the DisplayName and ObjectType for the resource with the ObjectId matching the objectID argument. If you need more information, please provide more specifics
for what you are trying to accomplish.
There are many code examples for this library on its CodePlex home:
http://fim2010client.codeplex.com/ -
How to consume Sharepoint web services in SMP 2.3?
Hi,
I want to create jQuery Mobile application in which i want to call Sharepoint (SOAP) web services like (getListCollection, getListItems etc) through
SMP 2.3 Can any one tell me in detail how to consume Sharepoint web services in SMP 2.3 so that i can use data in my jQuery Mobile Application?
For example my web service is http://xxxxx:xx/___/Lists.asmx?op=GetListItemsHi Harshada,
Any good reasons to integrate Share point Jquery mobile application with SMP ?
because Share point web services can be consumed directly in the Jquery mobile applications.
Please look at the below examples to achieve it.
Sample Codes :
Read List Items using Sharepoint Web Services and jQuery | Robert Kuzma on SharePoint, HTML, CSS &amp; JavaScript, …
Pro-Grammar: Calling the SharePoint 2010 GetListItems web services with Jquery
javascript - Getting list data from SharePoint 2010 site using Jquery - Stack Overflow
-Virinchy -
How to integrate deployed Web Services and Portlets
Hi All,
I am able to deploy Web Services and Portlets in the Application Server, which is in the network system.Now, I want to know how to integrate the Web Services and Portlets.I dont have any idea about this and i didn't got any good material..
Please, provide some useful links or material, if anybody has any idea about this.
Thanks in advance.
PraphulYou can consume a Web service from a JSF page for example using the ADF Web service data control:
http://www.oracle.com/technology/obe/obe11jdev/bulldog/webservices/ws.html
http://www.oracle.com/technology/obe/obe11jdev/11/wsdc/wsdc.htm
You can turn these JSF pages into portlets using WebCenter's JSF to Portlet bridge.
http://www.oracle.com/technology/products/jdev/11/cuecards111/jps_set_62/ccset62_ALL.html -
How to access .asmx Web Service using JAVA? Newbie
Hello Experts,
Currently, I have a project where in I have to access a ,NET web service. It is made of C#. I just want to ask how will I start the accessing process? I made this simple equation on how my project is.
Java Project + C#.Net Web Service = Integration
1. Do i need to create a Web Service too for the Java Project? If yes, What are the necessary tools needed for the creation of this Java Web Service?
2. The .NET Web Service is available online. (It is made by other people).
3. Based on the equation, what is the equivalent technology for the + sign?
4. Can you site a concrete example for accessing a web service?
5. I'm new here. Totally I have no idea where to start.
6. Thank you experts.
Edited by: Benedict.Aluan on 05 30, 08 1:38 PM
Edited by: Benedict.Aluan on 05 30, 08 1:39 PMHello
Thanks a lot for your help ...
I am developing simple J2EE based web service client using IBM WSAD 5.1. I have used the following code to call .asmx web service in Java
String url = "http://www.w3schools.com/webservices/tempconvert.asmx?wsdl";
String namespace = "http://tempuri.org/";
name = request.getParameter("txtName");
try
System.out.println("In Internet Service");
ServiceFactory factory = ServiceFactory.newInstance();
Service serv = factory.createService(new URL(url),new QName(namespace,"TempConvert"));
System.out.println("Got Service......");
Call obj = (Call)serv.createCall();
System.out.println("Got Call......");
obj.setProperty(Call.ENCODINGSTYLE_URI_PROPERTY,"");
obj.setProperty(Call.OPERATION_STYLE_PROPERTY,"wrapped");
obj.setTargetEndpointAddress(url);
obj.setPortTypeName(new QName(namespace,"TempConvertSoap"));
obj.setOperationName(new QName(namespace,"FahrenheitToCelsius"));
obj.addParameter("param1",XMLType.XSD_STRING,String.class,ParameterMode.IN);
obj.setReturnType(XMLType.XSD_STRING);
System.out.println("Parameters Set.....");
Object[] params = new Object[]{name};
k = (String)obj.invoke(params);
System.out.println("Result: "+k);
catch(Exception e)
System.out.println("Exception is : "+e);
}But this code is throwing exception that
Invalid Address "http://www.w3schools.com/webservices/tempconvert.asmx?wsdl"I have also tried this URL with Java Proxy. But it showing the same error.
Plz can u tell me how to access .asmx web service ?
Waiting 4 reply. -
How To Access HTTPS Web Service in Application Module
I need to know how to access HTTPS web service in application module.
If you can provide the tutorial or guidance to achieve this really appreciate.
Thanks
SameeraUse the Web Service Proxy wizard in JDeveloper to create a class that calls your Web service, and then call this class from code in your AM.
http://docs.oracle.com/cd/E16340_01/web.1111/b31974/web_services.htm#CJAHGIEF -
How to access a web service from a XLet
Hello,
I am new in software development to ITV and I dint find too many usefull information teaching how to access a web service from a XLet running in a STB. Are there anybody who can give me some help, maybe sample or tutorial?
Gratefull
Davidhi,
you can "borrow" the source code from [Yambo a free soft open source presentation engine (AKA XML microbrowser Xlet )|http://www.cineca.tv/labs/mhplab/index-en.html] both local and on a http remote connection.
hope it helps..
bye
andrea -
Hi everyone,
I followed the instructions of the following link to create a web service using jDeveloper 10.1.3.1.0 on Oracle Application Server 10.1.2.0.2. [http://st-curriculum.oracle.com/obe/jdev/obe1013jdev/10131/devdepandmanagingws/devdepandmanagingws.htm#t1]
The web service created was deployed & used with no errors on the standalone OC4J instance.
But my goal is to deploy my web service on Oracle Application Server 10.1.2.0.2.
So after several attempts, I was able to deploy it on the Oracle Application Server 10.1.2.0.2 but unfortunately I didn't know the URL needed to use the web service.
I tried the following link (http://192.168.0.91:18100/JavaWebService-GetDates-context-root/GetDatesWSSoapHttpPort) but also didn't work :(
I also tried converting to J2EE 1.3 and still not knowing how to access the web service.
Please advice with a solution.
Thanks in advance.
LanaThanks everyone for your help :)
The problem turned out to be that Oracle application server 10.1.2 is unlike the others servers, it uses 2 ports:
- port (19100) is dedicated for the console.
- port (7779) is to view your applications.
So the URL needed turned out to be "http://acteos-109.beirut.acteos:7779/beanTest" instead of "http://acteos-109.beirut.acteos:18100/beanTest"
Hope this info is useful
Lana -
How Can I install Web Service on Oracle 11g r1?
How Can I install Web Service on Oracle 11g r1?
Hi,
Is necesary install XDB?
Because i have executed;
select * from dba_registry
where COMP_ID = 'XDB'
Oracle XML Database
Regards
Maybe you are looking for
-
This is driving me distraction now, any help is welcomed. I've tried Shutting the app store down Powering off the iPad 2 I did update to iOS 5.1 yesterday? Thanks monkey
-
My thread is gone! Is it undesired to post bugs about Oracle Products here?
A few days ago i posted a thread here about a bog in ODP.NET Driver 10.2.0.2.10 Beta Now this thread seems deleted. Is it undesired to post bugs about Oracle Products here?
-
After viewing & closing an image, can delete it, but not its containing folder.
I'm going through a bunch of old files to see what I can git rid of. When I view and then close an image in Photoshop CS6 I can delete the image file, but not its containing folder, which stays locked, even after closing Photoshop. Restarting and cl
-
Adobe 8.1.2 won't print
I cannot get my pdf files to print. A paper does come through the printer, but it comes out with just a lot of small vertical lines all over the page, and no words or images from the document. Any ideas why this is happening and how I might fix it??
-
Time machine backup coming up short
After yet another of Time Machine to keep my backups, I've had to again start a whole new backup of my files. I noticed that Time Machine shows "Backing up: XXGB of 637GB. I've got two drives on my MBP (SSD bootup and HDD data drive). If I click "