How to Consume a WSDL file in Webdynpro JAVA Application 7.30
Hi Experts,
My requirement is,I have a wsdl file(Provided by the SAP PI) which i need to consume in Webdynpro Java 7.3(NWDS 7.30).
I has been tried in the follwing way
1.First click on the Model --> Adaptive Web Service Model -->Model Name--Package Name
2.Choose Remote Location/File System.
3.After that choose the WSDL file from my project which i added earlier.
4.After that I get the node in the context menu.But I am uneble to set some data into the node and also uneble to get data data from the node
After deploying my project I get the following error.
Error ::
The initial exception that caused the request to fail, was:
com.sap.esi.esp.service.server.query.discovery.ExtendedServiceException: Configuration not found for service reference with ID: c73e38ff-a4d8-4e4c-89c2-827fd5cf17ac from application demo.sap.com/mwebsrvc. Either you have not assigned the Service Group to a Provider System or the generation of the configuration has failed. Check the configuration details from SAP NetWeaver Administrator -> Application Communication. --> Details about the Service Reference: {urn://TestSOAPtoRFCSender}SI_TestSOAPtoRFCSender_OB; Service Group: com.tsecl.SITestSOAPtoRFCSender_OB.pidev_nerapdrp_gov_in; Service Group Software Component: demo.sap.com/mwebsrvc; Service Group Application: demo.sap.com/mwebsrvc; Configuration state: Not configured
at com.sap.esi.esp.service.server.dynamic.DIIServiceRefConfigContextImpl.prepareContext(DIIServiceRefConfigContextImpl.java:275)
at com.sap.esi.esp.service.server.dynamic.DIIServiceRefConfigContextImpl.<init>(DIIServiceRefConfigContextImpl.java:59)
at com.sap.esi.esp.service.server.dynamic.DIIContextCreatorImpl.createDIIServiceRefConfigContext(DIIContextCreatorImpl.java:18)
at com.sap.engine.services.webservices.espbase.client.dynamic.configuration.DIIContextFactory.createDIIConfigurationsContext(DIIContextFactory.java:12)
at com.sap.engine.services.webservices.espbase.client.dynamic.GenericServiceFactory.createService_NewInstance(GenericServiceFactory.java:368)
... 67 more
Please help me about this.
Thanks and Regards,
Amit Basak
Hi Amit,
Create provider system in NWA -> SOA management -> System Connections. After ping is successful go to NWA -> Application Communication and select your DC and assign the provide system for your service configuration group.
I hope it will works fine as we also did the same.
- Pradeep
Similar Messages
-
How to create a .exe file for a java application
Hi, I want to create a .exe file for a java application I am developing so that I can schedule it to run at a particular time using Windows Scheduler on WinNT. Is there any way to accomplish this? Or is there any other way in which a Java application can be scheduled to run at a particular time on Windows everyday?
Create a .bat file and run that. Just have, in the .bat file:
java YourClassName Alternatively, you can use javaw YourClassName (without *.bat, just put it into Windows Scheduler like suggested above).
using javaw won't pop up any window... -
MSS ECM - how to retrieve custom OADP column in Webdynpro java application
Great day to all,
We have created custom OADP column for MSS ECM planning in SPRO.
In Portal, ECM Plan Table, the column is visible. User enters values into that and toggles the tabstrip.
Before submitting, i need to capture that value in Webdynpro java.
My Question is,
How can i make use of that column in my ECM Application using webdynpro java??
or how can i retrieve the custom OADP columns in webdynpro java with out using RFC??
Need ur great help... thanks alot in advance...
Thanks
MallaIn OADP ,there are two types of columns , functional column which cannot be edited in web dynpro java application and another type is application column which can be edited in application and the value of this column is handled in application using rfc enabled function module. MSS ECM comes with certain application column whose values are handled in MSS-ECM application . If you are trying to add custom application column you will have to handle that column value in your Z function module and also at OADP level you should not configure supply function for that column.
In order to call custom Z function module to handle custom application column I would suggest to create a seperate Software component and development component and in that handle the logic for calling Z Function module. Also you will have to define the usage of custom Development component in the MES-ECM standard component. -
How to create a exe file from a Java application
hi,
i have developed an application in java,now i want to distribute it to my client, for this i need to build a .exe file out of this application.
i already have a jar file ,now can i convert a jar file to a exe file.
im trying this out with JSmooth project but im getting it right, so can anyone help me .
thanks,
vishal jif u use dos to run your app like
"java myapp"
u can create a shortcut link
in target wright java remove the path
just leave the file name without the extension,
like this Target: "java myapp"
when u click on appy u'll c that java gets its full path, thats fine
that works 4 me, ofcourse ur client needs to have JRE or JDK. -
How to execute a jar file in a java application
Hi,
I've already try to execute a jar file by this way :
Runtime.getRuntime().exec(java -jar myJarFile.jar);
But the problem is that the display doesn't launch. Normally a "JFrame" display.
however the corresponding process is launched.
So i would to know if there is a way to execute a Jar File without using the Runtime class.
Is there a specific class for the Jar File?
Thank you.
RichardCreate a 'manifest' file pointing to the 'main' class, jar it into the .jar file, place it onto your desktop - or whereever you can click on it, and click on it.
-
How to start a .hlp-file from a java-application?
This is what I have done so far:
if(button == helpButton){
try{
String helpFile = "help.hlp";
Runtime.getRuntime().exec(helpFile);
catch(IOException e){
textArea.append("The helpfile could not be opened." + "\n");
}When i press the helpButton it throws the IOException. Does anyone know why?And a short explanation:
You can "start" that file by typing it into the shell, but it's still no executable (.com or .exe). The shell will search the registry for the associated application, run its executable and hand over the file to be opened as a command-line argument.
If you just Runtime.exec the filename, there is no shell that could do this work, and thus the process fails. With "cmd /c" you can invoke a shell session to execute the command. -
hi all,
here java people have given wsdl file to me, how to do the scenario,
and how to get the wsdl file from the java people.
regards,
priyaHello Priya,
Go to http://<hostname>:50000/wsnavigator or any other UDDI server and search for the web service to be invoked
There you can find the Webservice Definition (WSDL) file.
Check this weblog:
Invoke Webservices using SAPXI
regards
Gangaprasad -
Uploading and downloading files in webdynpro java
how to upload and download xl files in webdynpro java application .
Hi ,
Refer these links they maybe helpful to you
You can check this sampple example from SDN
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/40db4a53-41a9-2910-d4a2-9c28283f6658
Uploading and Downloading Files In Web Dynpro Java
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/00062266-3aa9-2910-d485-f1088c3a4d71
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/202a850a-58e0-2910-eeb3-bfc3e081257f
http://help.sap.com/saphelp_nw04/helpdata/en/43/85b27dc9af2679e10000000a1553f7/content.htm
Uploading and Downloading Files In Web Dynpro Tables
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/b0e10426-77ca-2910-7eb5-d7d8982cb83f
Some more links regarding Uploading and DownLoading Files
Uploading and downloading files
Upload and Download file through RFC called by java
Regards,
Saleem -
Process to consume a WSDL file in ABAP without using XI
Hi all,
I want to know if we can consume a WSDL file in ABAP without using XI?
I have developed a lot of web services and gave WSDL file to respective teams.
Now i need to consume a WSDL file in ABAP and i dont know how to do it.For creating a web service i use the web service wizard in SE37.
Now i need to consume a WSDL file in ABAP . The WSDL file is from a third party organization. how can i consume a WSDL file in ABAP without using XI. What is the process to consume a WSDL file in ABAP without using XI
Please help me with process and some sample code to consume a WSDL file in ABAP without using XI
Regards,
Jessica Sam.Depending on your release the process is a little bit different.
For NW 2004, see these instructions.
http://help.sap.com/saphelp_NW04/helpdata/en/bf/d005244e9d1d4d92b2fe7935556b4c/frameset.htm
For NW 7.0 see these instructions, in NW 7.0, you will, use the SOAMANAGER transaction to configure logical ports and other stuff, this replaces transaction WSADMIN and LPCONFIG.
http://help.sap.com/saphelp_nw70/helpdata/EN/bf/d005244e9d1d4d92b2fe7935556b4c/frameset.htm
Regards,
Rich Heilman -
How to consume SOAP webservice in to my java/j2ee application
Hi,
I am a java developer. how to i consume SAP soap webservice in to my java application.
scenario : 1
We are migrating 2 specific java modules in to SAP System.But master details are stored in to my java application database.Those details are require
to SAP application. So that they provide me WSDL file, How to i consume soap webservice in to my java application and also, How to i provide master data details to SAP system through SOAP webservice.
Any body provide me a detail instruction how to integrate SAP Application in to my java application using SOAP webservice. or
In this scenario i will go for any one open source ESB to consume the soap webservice in to my java application, and provide master data to
SAP application, can any one guide to me.Hi,
What IDE are you using?, for example with Eclipse i used WSDL2JAVA plugin in this way i converted the WSDL in java classes easily. Depending your development environment you can use different tools that makes easier the integration using the WSDL.
Regards. -
Inserting data into a file in Webdynpro java
hi,
My requirement is, i am using html code in my webdynpro application. i want to send the html code to a file(.txt file) .can any body help me how to send the data to file in webdynpro java.
thans,
kishoreHi,
For export file in format XML, TXT, ...
continue steps
1) create node with name FileResource and type binary
2) create view and add control filedownload and properties control set data binding node FileResource
3) create following code
//@@begin javadoc:wdDoInit()
/** Hook method called to initialize controller. */
//@@end
public void wdDoInit()
//@@begin wdDoInit()
IWDAttributeInfo attInfo = wdContext.getNodeInfo().getAttribute(IPrivateExportListView.IContextElement.FILE_RESOURCE);
IWDModifiableBinaryType binaryType = (IWDModifiableBinaryType) attInfo.getModifiableSimpleType();
binaryType.setFileName(ExportListView.FILE_NAME);
binaryType.setMimeType(WDWebResourceType.TXT);
try {
String resourcePath = WDURLGenerator.getResourcePath(wdComponentAPI.getDeployableObjectPart(), ExportListView.FILE_NAME);
wdContext.currentContextElement().setFileResource(this.getByteArrayFromResourcePath(resourcePath));
} catch (WDAliasResolvingException e) {
wdComponentAPI.getMessageManager().reportException(e.getLocalizedMessage(), true);
} catch (Exception e) {
throw new WDRuntimeException(e);
//@@end
and add following code
//@@begin others
private byte[] getByteArrayFromResourcePath(String resourcePath) throws FileNotFoundException, IOException {
FileInputStream in = new FileInputStream(new File(resourcePath));
ByteArrayOutputStream out = new ByteArrayOutputStream();
int length;
String Prueba = "hola esto es una prueba" + new Date().getSeconds();
//byte[] part = new byte[10 * 1024];
byte[] part = Prueba.getBytes();
while ((length = in.read(part)) != -1) {
out.write(part, 0, length);
out.write(Prueba.getBytes());
in.close();
return out.toByteArray();
// store image file name in constant FILE_NAME
private static final String FILE_NAME = "doc.txt";
//@@end
4)Create file ext(txt,xml,...) in following dir of the project
...\_comp\src\mimes\Components\com.prueba.ReporteComp
regards from colombia-medellín -
How to call a .jar file from a java bean?
any body knows how to call a .jar file from a java bean?
Crosspost!
http://forum.java.sun.com/thread.jspa?messageID=4349619 -
How to track session in Webdynpro Java application
Hi All,
How to get the session reference of any Webdynpro Java Application . My purpose is that thr is one WD application is getting launched , now if suppose user didn't perform any action on it and session for that application got expired . After the session got expired i have to update the table with the status . So to track that i need the session reference of WD application which i m looking for .
How could i get the same . Kindly help me on this .
Thanks & Regards,
Mitul.Hi ,
HttpSession session = request.getSession(false); //get the current session, if there is no session yet, return null
if (session == null) //forward to first page
else //do normal work
Then u can update ur session right ,
Regards ,
Venkat -
How to run an exe file in a java program
Hi,
Can somebody tell me how to run an exe file in a java program.
Thank you!Yes, java.lang.Runtime.exec().
Read this carefully before you do:
http://www.javaworld.com/javaworld/jw-12-2000/jw-1229-traps.html
Don't write a line of code before you're reviewed and understood the article completely. - MOD -
How to make a jar file from a java file?
how to make a jar file from a java file, is there any one tht can help me thank you;
You can study this.
http://java.sun.com/docs/books/tutorial/jar/basics/index.html
Maybe you are looking for
-
Can't Find "DVD and CD Sharing" under Sharing
Hello, I got a new MacBook Air a week ago, and I couldn't find "DVD and CD Sharing" under sharing in system preferences. Is there any way to make it appear? I am trying to share the CD from a Windows computer, and I installed this on my Windows comp
-
Help!! I need information about Siemens' PIM API
Hi everybody, I am looking for any information about Siemens API to allow PIM access from a midlet. I did not manage to find specifications about that API on the web... Are specifications free ? Is there an environment to develop J2ME applications us
-
HT201304 how do you reset a forgotten restrictions passcode?
how do you reset a forgotten restrictions password?
-
How to make safari re-open your tabs
When I quit Safari is there a way for it to remember my tabs and re-open them when I run it again? I tried changing the 'close windows when quitting an application" box in General Preferences, but it didn't affect Safari. I also saw something about
-
I just picked up my iphone 5 yesterday and I am having issues with wifi. When I tried wifi for the first time I selected my home network and entered in the password for the network and found out the following issues: 1) if you turn off wifi or turn o