Creating Adapter Modules
Hello
Can anyone tell me as to how do i create my own adapter modules. The java caode has been developed but where in the configuration builder of XI should this be stored and how?Could someone explain the entire process as to how to do this and also the configuration that needs to be done.
Regards
Sharat
1. Make sure you have the following jar files with you.
aii_af_cci.jar
aii_af_mp.jar
aii_af_ms_api.jar
aii_af_ms_spi.jar
aii_af_trace.jar
aii_af_svc.jar
aii_af_cpa.jar
2. Open NetWeaver Developer Studio. Create a new EJB Module
New>J2EE>EJB Module.
Specify a meaningful name for the module and click Finish.
3. Right click on the folder ejbModule and create new package.
Enter a meaningful name for package and click Finish.
4. Right click on the Project, select New-->Folder. Enter lib as the folder name.
Copy all the jar files specified above from your local system and paste them into newly create lib folder.Right click on the project. Select Properties-->Java build path. Go to Libraries tab and add the jar files from lib folder to the classpath.
5.Switch to J2EE Perspective-->J2EE Explorer tab.
Right click on the newly created package and select New-->EJB.
6. Specify a meaningful name for the EJB. Select Bean Type as Stateless Session Bean.
Make sure to uncheck the checkbox Generate default interfaces.
Click on Next.
7.On the next screen change the values of following attributes as specified below.
Remote Interface: com.sap.aii.af.mp.module.ModuleRemote
Home Interface: com.sap.aii.af.mp.module.ModuleHome
Local Interface: com.sap.aii.af.mp.module.ModuleLocal
LocalHome Interface: com.sap.aii.af.mp.module.ModuleLocalHome
Click on Finish.
8. After clicking on Finish, a Creation error will be reported. Ignore this error as the file would still be created as specified.
Open the newly created file in Java Editor and add Module to the implements list of the bean class. Press Ctrl + Shift + O to remove import errors if any.
You will see a new error as
Class must implement the inherited abstract method Module.process(ModuleContext, ModuleData).
Right click in the java editor and select Source-->Override / Implement methods. Select process method from Module interface and click Ok.
You should have an error free build of the project after this.
process is the only method where we need to write the business logic.
With this you are ready to right the situation specific business logic in the process method.
9. Once you create a deployable archive i.e. .ear for this using NDS, you can deploy this archive using NDS or using SDM.
Similar Messages
-
hi experts,
May i know how to create adapter modules..
Thanks & Regards
gunaHi,
Start with basics:
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/7bf6e190-0201-0010-83b7-cc557eb76abe
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/3bdc14e1-0901-0010-b5a9-a01e29d75a6a
Some good Examples to start with :
Rename Attachment Adapter Module
Copy a file with same filename using XI
Customized Adapter Module
Regards -
Need Help in Creating adapter module for SFTP Sender in NWDS
Hi experts,
I have a scenario where i should write an adapter module for SFTP sender in NWDS.. need your help in achieving this..Hello,
>>i have followed the procedure of FTP but, adapter is not picking the file
Make sure u have written proper expression to pick file.
>>do we have any different adapter parameters for SFTP... the input file is .csv..
I don't think there are any specific parameters needed for SFTP (but in case u are reading file name in AM then u might have to adjust SFTP namespace)
Thanks
Amit Srivastava -
Bean problem with creating Adapter Module in NW developer studio
Hi Gurus!
I started to develop an adapter module like described in
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/02706f11-0d01-0010-e5ae-ac25e74c4c81
Unfortunatelly, I'm getting error described on page 9 of the document:
Bean problem: no interface classes found
I cannot resolve this problem. I've tried it also like described in the document, but no success.
Any ideas of what could be wrong?
Thank you!
MarthyMarthy.,.
Close and open project..standard problem ONLY with nwdi..
Regards
Ravi Raman -
Creating Adapter modules in PI
Hi Experts.....
i am looking at gettin my hands on creating a module in PI...can some1 walk me through the initial steps i need to consider...
if some1 could guide me on what i could do as a simple test to get aquainted in creating a module that'l b really great......
i hv NWDS....hw do i test the module? do i alwys need 2 deply it on the J2EE engine and test??
HankHank,
Go thru this Document
https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/f013e82c-e56e-2910-c3ae-c602a67b918e?overridelayout=true
http://help.sap.com/saphelp_nw04/helpdata/en/8b/895e407aa4c44ce10000000a1550b0/frameset.htm
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e21106cc-0c01-0010-db95-dbfc0ffd83b3
Cheers
Agasthuri -
Adapter Module for SOAP Sender
Hi,
Any alternative way to create adapter module for soap sender?
Regards,
FarooqBut I just trying to know weather it will work for simple soap or not.
Unfortunately it wont work for the normal SOAP protocol.
Let me try my luck.
If you are successful, then I would waiting for a blog
Regards,
Abhishek. -
I have a file to file scenario. The incoming file contains Employee Details and I need to validate each record and need to reject them if they are invalid as per the business rules.
For this I know I need to create the Adapter Module Processing.
I am following the below mentioned document.
https://websmp209.sap-ag.de/~sapdownload/011000358700003237612005E/HowToCreateAdapterModules.pdf
I dont have an NWDS installed, but I want to develop my java program in Eclipse? Whether it is OK to do it in Eclipse? Once I develop my Java program what exactly I need to do? How to create a Jar file in Eclipse? How to import that in XI?
Thanks.
[email protected]Hi Jenni,
This topic has been already discussed in the below thread:-
Creating Adapter Modules
In general, I will explain how to create .JAR file:-
Creating a .JAR file is easy. Go to the directory where your classes are stored and type :-
jar -cf myfile.jar *.class
(jar is the command to run the jar utility. -cf are options, where c create arhive and f specify archive file name)
Now, if you have an existing JAR file, and want to extract it, you'd type:-
jar -xf myfile.jar
Also go thro' this link for step by step procedure on simple Module Processing:-
https://websmp201.sap-ag.de/~sapdownload/011000358700003237612005E/HowToCreateAdapterModules.pdf
I hope this provides you a solution.
Regards.
Praveen -
Code to retrive the sender and receiver interface names using custome adapter module
Hello Team,
I want to develop an custom adapter module which could retrieve the names of the sender and receiver interfaces of the scenario and for that i am trying to use com.sap.aii.af.service.administration.api.monitoring.ProcessContextFactory.ParamSet but i don't know whether this API will support or not and also i don't know how to develop the code using this API so please suggest me some code for it so that i could retrieve the names.
Thanks you all in advance.
Regards,
Avinash.Hi,
Just ASMA setting will do the needful. Are you planning to rename your target file name. If yes then only you will require UDF.
Update: Since your directory name will be taken from source file name then you have to use mapping for this, else it will not be possible.
I don't know if creating a new module for this will help you solve the issue, but in that case rather creating adapter module, mapping will be easier.
Regards,
Sarvesh
Edited by: Sarvesh Singh on Dec 7, 2009 3:04 PM -
How to create a module for File Adapter
Hi,
I read somethings about module in Adapters.
What I need to create a EJB? I need to generate a jar? Where I put it?
Do they have anything about this or a step by step? I want to create a module fpr File Adapter
Tks.Hi,
>>>What I need to create a EJB?
If you have NDS or Ecclipse you can create them automatically.
>>>I need to generate a jar?
Yes you need to generate a .Jar for that Ejb.
>>>Where I put it?
Put that .Jar in .Ear file. and then deploy it on to the Xi server or PCK or Decentralised Adapter Engine where ever u want to use.
>>>Do they have anything about this or a step by step?
Yes.Step by step procedure for creating module is available.You can get them at the links given above by others.
Regards,
Gowtham K. -
Creating a new message in adapter module
Hello,
I already posted the question in this [Thread|Sending Adapter Module to split messages;, but I now create this new topic so you can get points for your answer
Jan from this thread wrote "I know how to send a new message using a new instance of the Module Processor and using ModuleProcessor.process()" and I'm now searching for a code example how to create a new message from within an adapter module. I think it must be something like [this|http://help.sap.com/saphelp_srm40/helpdata/en/8d/6ad6409ff68631e10000000a1550b0/frameset.htm].
Regards
MarkusHi Sippy,
First of all we need to configure the systems. So that we can transfer data from Outbound system to Inbound system.
Configure an Outbound Process that uses Message Control
Step 1: Create a new Message Type
TCode: We 81
Path: From the Area menu of EDI, choose Development, IDOC Type/ Message
Step 2: link the IDOC type to the Message Type
TCode: We 82
Path: From the Area menu of EDI, choose Development, IDOC Type/ Message
Step 3: Create a new Process Code
TCode: We 41
Path: From the Area menu of EDI, choose Control,Outbound Process COde
Step 4: Create or Change a Partner Profile
TCode: We 41
Path: From the Area menu of EDI, choose IDOC,Partner Profile
Configure an Outbound Process for Stand-Alone Programs.
1. Create a new message type
2. Link the IDOC type to the Message Type
3. Add the message to the ALE Distribution Model(use BD 64)
4. Create or change the Partner Profile
I think this will be helpful for you.
Reward points if useful.
Cheers,
Swamy Kunche -
Create multiple messages in adapter module
Hi!
I've the problem to solve the following scenario: Mail (1) -> XI -> IDocs (1..n)
Since for IDocs message split is not supported and I don't want to use a BPM, is it possible to create different xi-messages in an adapter module which processes the mail?
Therefore I want to make the message split directly on the source: the adapter module.
Best regards,
DanielDaniel,
There is no need for a BPM and for an Adapter Module split.
1. Create an XSD out of your IDOC strcuutre and change the occurence of the IDOC element to 0 to unbounded.
2. Import this XSD and use this in your Message Mapping as the target Message Type. For every IDOC to be created in your Target , you will need to create an IDOC tag in the mapping. Each IDOC tag indiactes one IDOC.
3. In your Interface Mapping, DO NOT CREATE a separate Interface for the IDOC, but use the IDOC itself as the Message Interface and select the mapping with the XSD as the target.
Configuration will be as usual.
Regards,
Bhavesh -
Creating J2EE adapter module problem
Hi All,
when i am creating a J2EE customer-specific adapter module in SAP Netweaver Developer Studio, then in the java class when i write these statements:
<u>import com.sap.aii.af.mp.module.*;
import com.sap.aii.af.ra.ms.api.*;</u>
public class CustomerMeter implements SessionBean, <u>Module</u>{
it is showing error on the above underlined things that it cannot resolve these things.
can anybody suggest where to locate these librarys in Project - Properties - Java Build Path - Libraries path from the main menu.
Thanks,
Rajeev GuptaHi Amit,
On changing the ejb-jar.xml as you said:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN"
"http://java.sun.com/dtd/ejb-jar_2_0.dtd">
<ejb-jar>
<description>EJB JAR description</description>
<display-name>EJB JAR</display-name>
<enterprise-beans>
<session>
<ejb-name>CustomerMeter</ejb-name>
<ejb-class>pkgCustomerMeter.CustomerMeter</ejb-class>
<home>com.sap.aii.af.mp.module.ModuleHome</home>
<remote>com.sap.aii.af.mp.module.ModuleRemote</remote>
<local-home>com.sap.aii.af.mp.module.ModuleLocalHome</local-home>
<local>com.sap.aii.af.mp.module.ModuleLocal</local>
<session-type>Stateless</session-type>
<transaction-type>Container</transaction-type>
</session>
</enterprise-beans>
</ejb-jar>
But now on saving this xml, it is giving the following error:
<b>The content of element type "session" must match "(description?,display-name?,small-icon?,large-icon?,ejb-name,home?,remote?,local-home?,local?,ejb-class,session-type,transaction-type,env-entry,ejb-ref,ejb-local-ref,security-role-ref,security-identity?,resource-ref,resource-env-ref)".</b>
Could you please tell how to correct this error.
Thanks and Regards,
Rajeev Gupta -
Using a different user(other than default PI user) with adapter module
Hi,
We are having a custom adapter module built to interact with a Hardware Security Module(HSM). This custom adapter module by default uses a PI user configured in the system. However, we are not able to pass commands to HSM because of insufficient authorizations to this PI user. Now, we do not exactly know the permissions required for the user to access HSM. We have asked the HSM support team about the same. However, I wanted to explore the possibility of using a different PI user to work with the adapter module and eventually pass commands to HSM.
We have an admin user configured which has all the necessary authorizations. Is it possible to use this admin user created on PI system to work with adapter module so that it passes commands to HSM?
Thanks,
Ravi DesaiWe have given the necessary authorizations to PI user.
-
Error in creating Adaptive Webservice model from local wsdl file
hi ,
I am working on Netweaver7.1 CE. I am creating adaptive webservice model from local wsdl file which i have saved at location D:/subordinate WSDL WSDL By Raju/Manager.wsdl on my pc. I am able to bind context , build and deploy. But when i am running that webdynpro project m getting following error
java.io.FileNotFoundException: /D:/subordinate WSDL WSDL By Raju/Manager.wsdl (No such file or directory)
com.sap.tc.webdynpro.services.exceptions.WDRuntimeException: Exception was thrown in preprocessing phase of application session ApplicationSession(name=encryptappl.EncryptAppl, id=25f1f2e1a96411dd9d240050569630a5). The causing exception is nested. RID=25ef0cb0a96411dd91ce0050569630a5
at com.sap.tc.webdynpro.clientserver.session.ClientSession.doPreprocessing(ClientSession.java:650)
at com.sap.tc.webdynpro.clientserver.session.ClientSession.doProcessing(ClientSession.java:225)
at com.sap.tc.webdynpro.clientserver.session.RequestManager.doProcessing(RequestManager.java:231)
at com.sap.tc.webdynpro.serverimpl.core.sessionctx.AbstractExecutionContextDispatcher.delegateToRequestManager(AbstractExecutionContextDispatcher.java:205)
at com.sap.tc.webdynpro.serverimpl.wdc.sessionctx.DispatchHandlerForRequestManager.doService(DispatchHandlerForRequestManager.java:38)
at com.sap.tc.webdynpro.serverimpl.wdc.sessionctx.AbstractDispatchHandler.service(AbstractDispatchHandler.java:116)
at com.sap.engine.services.servlets_jsp.server.deploy.impl.module.IRequestDispatcherImpl.dispatch(IRequestDispatcherImpl.java:93)
at com.sap.tc.webdynpro.serverimpl.wdc.sessionctx.ExecutionContextDispatcher.dispatchToRequestManager(ExecutionContextDispatcher.java:140)
at com.sap.tc.webdynpro.serverimpl.core.sessionctx.AbstractExecutionContextDispatcher.dispatch(AbstractExecutionContextDispatcher.java:93)
at com.sap.tc.webdynpro.serverimpl.core.sessionctx.AbstractExecutionContextDispatcher.dispatch(AbstractExecutionContextDispatcher.java:105)
at com.sap.tc.webdynpro.serverimpl.core.AbstractDispatcherServlet.doContent(AbstractDispatcherServlet.java:87)
at com.sap.tc.webdynpro.serverimpl.core.AbstractDispatcherServlet.doGet(AbstractDispatcherServlet.java:54)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at com.sap.engine.services.servlets_jsp.server.Invokable.invoke(Invokable.java:66)
at com.sap.engine.services.servlets_jsp.server.Invokable.invoke(Invokable.java:32)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:431)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:289)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:387)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:376)
at com.sap.engine.services.servlets_jsp.filters.ServletSelector.process(ServletSelector.java:85)
at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:71)
at com.sap.engine.services.servlets_jsp.filters.ApplicationSelector.process(ApplicationSelector.java:160)
at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:71)
at com.sap.engine.services.httpserver.filters.WebContainerInvoker.process(WebContainerInvoker.java:67)
at com.sap.engine.services.httpserver.chain.HostFilter.process(HostFilter.java:9)
at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:71)
at com.sap.engine.services.httpserver.filters.ResponseLogWriter.process(ResponseLogWriter.java:60)
at com.sap.engine.services.httpserver.chain.HostFilter.process(HostFilter.java:9)
at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:71)
at com.sap.engine.services.httpserver.filters.DefineHostFilter.process(DefineHostFilter.java:27)
at com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)
at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:71)
at com.sap.engine.services.httpserver.filters.MonitoringFilter.process(MonitoringFilter.java:29)
at com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)
at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:71)
at com.sap.engine.services.httpserver.server.Processor.chainedRequest(Processor.java:309)
at com.sap.engine.services.httpserver.server.Processor$FCAProcessorThread.run(Processor.java:222)
at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
at java.security.AccessController.doPrivileged(Native Method)
at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:152)
at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:247)
Caused by: com.sap.tc.webdynpro.model.webservice.exception.WSModelRuntimeException: Exception on creation of service metadata for WSDL URL 'file:/D:/subordinate WSDL By Raju/Manager.wsdl' and service factory configuration 'null'
at com.sap.tc.webdynpro.model.webservice.metadata.WSModelInfo.getOrCreateWsrService(WSModelInfo.java:422)
at com.sap.tc.webdynpro.model.webservice.metadata.WSModelInfo.readOperationsFromWSDL(WSModelInfo.java:372)
at com.sap.tc.webdynpro.model.webservice.metadata.WSModelInfo.importMetadataInternal(WSModelInfo.java:342)
at com.sap.tc.webdynpro.model.webservice.metadata.WSModelInfo.importMetadata(WSModelInfo.java:326)
at com.sap.tc.webdynpro.model.webservice.metadata.WSModelInfo$Cache.getModelInfo(WSModelInfo.java:199)
at com.sap.tc.webdynpro.model.webservice.metadata.WSModelInfo.getModelInfoFromCacheOrCreate(WSModelInfo.java:1034)
at com.sap.tc.webdynpro.model.webservice.metadata.WSModelInfo.getModelInfoFromCacheOrCreate(WSModelInfo.java:248)
at com.sap.tc.webdynpro.model.webservice.gci.WSTypedModel.<init>(WSTypedModel.java:41)
at com.apl.model.manager.Manager.<init>(Manager.java:44)
at encryptappl.comp.EncryptApplComp.wdDoInit(EncryptApplComp.java:112)
at encryptappl.comp.wdp.InternalEncryptApplComp.wdDoInit(InternalEncryptApplComp.java:126)
at com.sap.tc.webdynpro.progmodel.generation.DelegatingComponent.doInit(DelegatingComponent.java:160)
at com.sap.tc.webdynpro.progmodel.controller.Controller.initController(Controller.java:230)
at com.sap.tc.webdynpro.progmodel.components.Component.initController(Component.java:249)
at com.sap.tc.webdynpro.progmodel.controller.Controller.init(Controller.java:209)
at com.sap.tc.webdynpro.clientserver.cal.ClientApplication.init(ClientApplication.java:513)
at com.sap.tc.webdynpro.clientserver.cal.ClientApplication.doPreprocessing(ClientApplication.java:1228)
at com.sap.tc.webdynpro.serverimpl.core.sessionctx.AbstractExecutionContextDispatcher.delegateToApplicationDoPreprocessing(AbstractExecutionContextDispatcher.java:150)
at com.sap.tc.webdynpro.serverimpl.wdc.sessionctx.DispatchHandlerForAppPreprocessing.doService(DispatchHandlerForAppPreprocessing.java:35)
at com.sap.tc.webdynpro.serverimpl.wdc.sessionctx.AbstractDispatchHandler.service(AbstractDispatchHandler.java:116)
at com.sap.engine.services.servlets_jsp.server.deploy.impl.module.IRequestDispatcherImpl.dispatch(IRequestDispatcherImpl.java:93)
at com.sap.tc.webdynpro.serverimpl.wdc.sessionctx.ExecutionContextDispatcher.dispatchToApplicationDoPreprocessing(ExecutionContextDispatcher.java:100)
at com.sap.tc.webdynpro.serverimpl.core.sessionctx.AbstractExecutionContextDispatcher.dispatch(AbstractExecutionContextDispatcher.java:75)
at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.dispatch(ApplicationSession.java:507)
at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.dispatch(ApplicationSession.java:527)
at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doPreprocessing(ApplicationSession.java:233)
at com.sap.tc.webdynpro.clientserver.session.ClientSession.doPreprocessing(ClientSession.java:647)
... 41 more
Caused by: com.sap.engine.services.webservices.jaxrpc.exceptions.WebserviceClientException: GenericServiceFactory initialization problem. [Problem with WSDL file parsing. See nested message.]
at com.sap.engine.services.webservices.espbase.client.dynamic.GenericServiceFactory.createService_NewInstance(GenericServiceFactory.java:247)
at com.sap.engine.services.webservices.espbase.client.dynamic.GenericServiceFactory.createService_NewInstance(GenericServiceFactory.java:131)
at com.sap.engine.services.webservices.espbase.client.dynamic.GenericServiceFactory.createService(GenericServiceFactory.java:124)
at com.sap.tc.webdynpro.model.webservice.metadata.WSModelInfo.getOrCreateWsrService(WSModelInfo.java:420)
... 67 more
Caused by: com.sap.engine.services.webservices.jaxrpc.exceptions.ProxyGeneratorException: Problem with WSDL file parsing. See nested message.
at com.sap.engine.services.webservices.espbase.client.ProxyGeneratorNew.loadWSDLapi(ProxyGeneratorNew.java:585)
at com.sap.engine.services.webservices.espbase.client.ProxyGeneratorNew.generateAll(ProxyGeneratorNew.java:341)
at com.sap.engine.services.webservices.espbase.client.dynamic.impl.DGenericServiceImpl.loadProxy(DGenericServiceImpl.java:130)
at com.sap.engine.services.webservices.espbase.client.dynamic.impl.DGenericServiceImpl.<init>(DGenericServiceImpl.java:65)
at com.sap.engine.services.webservices.espbase.client.dynamic.GenericServiceFactory.createService_NewInstance(GenericServiceFactory.java:240)
... 70 more
Caused by: com.sap.engine.services.webservices.espbase.wsdl.exceptions.WSDLException: /D:/subordinate WSDL By Raju/Manager.wsdl (No such file or directory)
at com.sap.engine.services.webservices.espbase.wsdl.WSDLLoader.loadDOMDocument(WSDLLoader.java:140)
at com.sap.engine.services.webservices.espbase.wsdl.WSDLLoader.load(WSDLLoader.java:91)
at com.sap.engine.services.webservices.espbase.wsdl.WSDLLoader.load(WSDLLoader.java:80)
at com.sap.engine.services.webservices.espbase.client.ProxyGeneratorNew.loadWSDLapi(ProxyGeneratorNew.java:579)
... 74 more
Caused by: java.io.FileNotFoundException: /D:/subordinate WSDL By Raju/Manager.wsdl (No such file or directory)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(FileInputStream.java:106)
at java.io.FileInputStream.<init>(FileInputStream.java:66)
at sun.net.www.protocol.file.FileURLConnection.connect(FileURLConnection.java:70)
at sun.net.www.protocol.file.FileURLConnection.getInputStream(FileURLConnection.java:161)
at java.net.URL.openStream(URL.java:1007)
at com.sap.engine.lib.xml.parser.AbstractXMLParser.parse(AbstractXMLParser.java:201)
at com.sap.engine.lib.xml.parser.AbstractXMLParser.parse(AbstractXMLParser.java:263)
at com.sap.engine.lib.xml.parser.Parser.parse_DTDValidation(Parser.java:282)
at com.sap.engine.lib.xml.parser.Parser.parse(Parser.java:293)
at com.sap.engine.lib.xml.parser.DOMParser.parse(DOMParser.java:101)
at com.sap.engine.lib.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:127)
at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:146)
at com.sap.engine.services.webservices.espbase.wsdl.WSDLLoader.loadDOMDocument(WSDLLoader.java:132)
... 77 morehi ,
i tried to create model using url in address tab , but i am getting error. This webservice is having authentication ,is this error bcoz of authentication????
I am posting error below
com.sap.tc.webdynpro.model.webservice.exception.WSModelRuntimeException: Exception on creation of service metadata for WSDL URL 'http://172.25.30.195:80/WebService/WebServiceApp.nsf/wsGetSuperior?OpenAgent' and service factory configuration '{DynamicProxy.ClassPath=D:/Program Files/SAP/IDE/CE/eclipse/plugins/com.sap.tc.cmi_10.0.0.080222130515/lib/com.sap.tc.cmi_api.jar;D:/Program Files/SAP/IDE/CE/eclipse/plugins/com.sap.exception_2.0.0.080222130515/lib/sap.comtcexceptionimpl.jar;D:/Program Files/SAP/IDE/CE/eclipse/plugins/com.sap.engine.webservices_2.0.0.080222130515/lib/sap.comtcblbasewebservices_libimpl.jar;D:/Program Files/SAP/IDE/CE/eclipse/plugins/com.sap.engine.webservices_2.0.0.080222130515/lib/sap.comtcbliqlibimpl.jar;D:/Program Files/SAP/IDE/CE/eclipse/plugins/com.sap.engine.webservices_2.0.0.080222130515/lib/sap.comtcbljkernel_bootimpl.jar;D:/Program Files/SAP/IDE/CE/eclipse/plugins/com.sap.engine.webservices_2.0.0.080222130515/lib/sap.comtcbljkernel_utilimpl.jar;D:/Program Files/SAP/IDE/CE/eclipse/plugins/com.sap.engine.webservices_2.0.0.080222130515/lib/sap.comtcjewebservices_apiimpl.jar;D:/Program Files/SAP/IDE/CE/eclipse/plugins/com.sap.engine.webservices_2.0.0.080222130515/lib/sap.comtcjewebservices_libimpl.jar;D:/Program Files/SAP/IDE/CE/eclipse/plugins/com.sap.engine.webservices_2.0.0.080222130515/lib/sap.comtcjewebservicesimpl.jar;D:/Program Files/SAP/IDE/CE/eclipse/plugins/com.sap.engine.webservices_2.0.0.080222130515/lib/sap.comtcsecwssecclientimpl.jar;D:/Program Files/SAP/IDE/CE/eclipse/plugins/com.sap.engine.webservices_2.0.0.080222130515/lib/sap.comtcsecwsseclibimpl.jar;D:/Program Files/SAP/IDE/CE/eclipse/plugins/com.sap.engine.webservices_2.0.0.080222130515/lib/sap.comtcsecwssecsrtlibimpl.jar;D:/Program Files/SAP/IDE/CE/eclipse/plugins/com.sap.dictionary.runtime_10.0.0.080222130515/lib/com.sap.dictionary.runtime.mod_api.jar;D:/Program Files/SAP/IDE/CE/eclipse/plugins/com.sap.dictionary.runtime_10.0.0.080222130515/lib/com.sap.dictionary.runtime.mod_core.jar;D:/Program Files/SAP/IDE/CE/eclipse/plugins/com.sap.dictionary.runtime_10.0.0.080222130515/lib/dictionary_mdi_util_api.jar;D:/Program Files/SAP/IDE/CE/eclipse/plugins/com.sap.dictionary.runtime_10.0.0.080222130515/lib/dictionary_mdi_util_core.jar;D:/Program Files/SAP/IDE/CE/eclipse/plugins/com.sap.dictionary.runtime_10.0.0.080222130515/lib/dictionary_runtime_mdi_api.jar;D:/Program Files/SAP/IDE/CE/eclipse/plugins/com.sap.dictionary.runtime_10.0.0.080222130515/lib/dictionary_runtime_mdi_core.jar;D:/Program Files/SAP/IDE/CE/eclipse/plugins/com.sap.dictionary.services_10.0.0.080118105715/lib/com.sap.dictionary.services_api.jar;D:/Program Files/SAP/IDE/CE/eclipse/plugins/com.tssap.sap.libs.logging_2.0.0.080222130515/lib/sap.comtcloggingjavaimpl.jar;D:/Program Files/SAP/IDE/CE/eclipse/plugins/com.tssap.sap.libs.xmltoolkit_2.0.0.080222130515/lib/sap.comtcsapxmltoolkitsapxmltoolkit.jar;D:/Program Files/SAP/IDE/CE/eclipse/plugins/com.sap.ext.libs.webservices_2.0.0.080222130515/lib/activation.jar;D:/Program Files/SAP/IDE/CE/eclipse/plugins/com.sap.ext.libs.webservices_2.0.0.080222130515/lib/jaxm-api.jar;D:/Program Files/SAP/IDE/CE/eclipse/plugins/com.sap.ext.libs.webservices_2.0.0.080222130515/lib/jaxrpc-api.jar;D:/Program Files/SAP/IDE/CE/eclipse/plugins/com.sap.ext.libs.webservices_2.0.0.080222130515/lib/jnet.jar;D:/Program Files/SAP/IDE/CE/eclipse/plugins/com.sap.ext.libs.webservices_2.0.0.080222130515/lib/jsse.jar;D:/Program Files/SAP/IDE/CE/eclipse/plugins/com.sap.ext.libs.webservices_2.0.0.080222130515/lib/mail.jar;D:/Program Files/SAP/IDE/CE/eclipse/plugins/com.sap.ext.libs.webservices_2.0.0.080222130515/lib/saaj-api.jar;, DynamicProxy.HTTPPassword=, DynamicProxy.HTTPUserName=, DynamicProxy.Javac.path=D:\Program Files\java\jdk1.5.0_12\bin\javac, DynamicProxy.TempDir=C:\DOCUME1\kavita\LOCALS~1\Temp\}'
at com.sap.tc.webdynpro.model.webservice.metadata.WSModelInfo.getOrCreateWsrService(WSModelInfo.java:414)
at com.sap.tc.webdynpro.model.webservice.metadata.WSModelInfo.readOperationsFromWSDL(WSModelInfo.java:372)
at com.sap.tc.webdynpro.model.webservice.metadata.WSModelInfo.importMetadataInternal(WSModelInfo.java:342)
at com.sap.tc.webdynpro.model.webservice.metadata.WSModelInfo.importMetadata(WSModelInfo.java:306)
at com.sap.tc.webdynpro.model.webservice.metadata.WSModelInfo.importMetadata(WSModelInfo.java:316)
at com.sap.tc.webdynpro.model.webservice.modeltype.importer.ui.PageAWSRename.loadNameSpacesAndModelClasses(PageAWSRename.java:996)
at com.sap.tc.webdynpro.model.webservice.modeltype.importer.ui.PageAWSLocalFileClient$5$1.run(PageAWSLocalFileClient.java:283)
at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:123)
at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3659)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3296)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.block(ModalContext.java:158)
at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:326)
at org.eclipse.jface.wizard.WizardDialog.run(WizardDialog.java:934)
at com.sap.tc.webdynpro.model.webservice.modeltype.importer.ui.PageAWSLocalFileClient.getNextPage(PageAWSLocalFileClient.java:299)
at org.eclipse.jface.wizard.WizardDialog.nextPressed(WizardDialog.java:813)
at com.sap.ide.cmi.core.internal.newmodelwizard.NewModelWizardDialog.nextPressed(NewModelWizardDialog.java:66)
at org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:369)
at com.sap.ide.cmi.core.internal.newmodelwizard.NewModelWizardDialog.buttonPressed(NewModelWizardDialog.java:88)
at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:616)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:227)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:938)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3682)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3293)
at org.eclipse.jface.window.Window.runEventLoop(Window.java:820)
at org.eclipse.jface.window.Window.open(Window.java:796)
at com.sap.ide.cmi.core.internal.services.CreationServiceUI.createModel(CreationServiceUI.java:76)
at com.sap.ide.cmi.core.browser.actions.CreateModelAction.run(CreateModelAction.java:60)
at com.sap.ide.tools.core.viewerfwk.internal.actions.BaseSelectionSingleAction.run(BaseSelectionSingleAction.java:39)
at com.sap.ide.tools.core.viewerfwk.internal.actions.BaseSelectionAction.runInternal(BaseSelectionAction.java:78)
at com.sap.ide.tools.core.viewerfwk.internal.actions.BaseSelectionAction.run(BaseSelectionAction.java:70)
at org.eclipse.ui.actions.BaseSelectionListenerAction.runWithEvent(BaseSelectionListenerAction.java:168)
at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:545)
at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:490)
at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:402)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:938)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3682)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3293)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2389)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2353)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2219)
at org.eclipse.ui.internal.Workbench$4.run(Workbench.java:466)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:289)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:461)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:106)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:153)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:106)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:76)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:363)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:176)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:504)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:443)
at org.eclipse.equinox.launcher.Main.run(Main.java:1169)
at org.eclipse.equinox.launcher.Main.main(Main.java:1144)
Caused by: com.sap.engine.services.webservices.jaxrpc.exceptions.WebserviceClientException: GenericServiceFactory initialization problem. [Problem with WSDL file parsing. See nested message.]
at com.sap.engine.services.webservices.espbase.client.dynamic.GenericServiceFactory.createService_NewInstance(GenericServiceFactory.java:247)
at com.sap.engine.services.webservices.espbase.client.dynamic.GenericServiceFactory.createService_NewInstance(GenericServiceFactory.java:91)
at com.sap.engine.services.webservices.espbase.client.dynamic.GenericServiceFactory.createService(GenericServiceFactory.java:84)
at com.sap.tc.webdynpro.model.webservice.metadata.WSModelInfo.getOrCreateWsrService(WSModelInfo.java:412)
... 60 more
Caused by: com.sap.engine.services.webservices.jaxrpc.exceptions.ProxyGeneratorException: Problem with WSDL file parsing. See nested message.
at com.sap.engine.services.webservices.espbase.client.ProxyGeneratorNew.loadWSDLapi(ProxyGeneratorNew.java:585)
at com.sap.engine.services.webservices.espbase.client.ProxyGeneratorNew.generateAll(ProxyGeneratorNew.java:341)
at com.sap.engine.services.webservices.espbase.client.dynamic.impl.DGenericServiceImpl.loadProxy(DGenericServiceImpl.java:130)
at com.sap.engine.services.webservices.espbase.client.dynamic.impl.DGenericServiceImpl.<init>(DGenericServiceImpl.java:65)
at com.sap.engine.services.webservices.espbase.client.dynamic.GenericServiceFactory.createService_NewInstance(GenericServiceFactory.java:240)
... 63 more
Caused by: com.sap.engine.services.webservices.espbase.wsdl.exceptions.WSDLException: Fatal Error: com.sap.engine.lib.xml.parser.ParserException: XMLParser: Bad Attribute value: ' or " expected!(http://172.25.30.195:80/WebService/WebServiceApp.nsf/wsGetSuperior?OpenAgent, row:3, col:96)
at com.sap.engine.services.webservices.espbase.wsdl.WSDLLoader.loadDOMDocument(WSDLLoader.java:140)
at com.sap.engine.services.webservices.espbase.wsdl.WSDLLoader.load(WSDLLoader.java:91)
at com.sap.engine.services.webservices.espbase.wsdl.WSDLLoader.load(WSDLLoader.java:80)
at com.sap.engine.services.webservices.espbase.client.ProxyGeneratorNew.loadWSDLapi(ProxyGeneratorNew.java:579)
... 67 more
Caused by: com.sap.engine.lib.xml.parser.NestedSAXParserException: Fatal Error: com.sap.engine.lib.xml.parser.ParserException: XMLParser: Bad Attribute value: ' or " expected!(http://172.25.30.195:80/WebService/WebServiceApp.nsf/wsGetSuperior?OpenAgent, row:3, col:96)(http://172.25.30.195:80/WebService/WebServiceApp.nsf/wsGetSuperior?OpenAgent, row=3, col=96) -> com.sap.engine.lib.xml.parser.ParserException: XMLParser: Bad Attribute value: ' or " expected!(http://172.25.30.195:80/WebService/WebServiceApp.nsf/wsGetSuperior?OpenAgent, row:3, col:96)
at com.sap.engine.lib.xml.parser.DOMParser.parse(DOMParser.java:139)
at com.sap.engine.lib.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:127)
at com.sap.engine.services.webservices.espbase.wsdl.WSDLLoader.loadDOMDocument(WSDLLoader.java:130)
... 70 more
Caused by: com.sap.engine.lib.xml.parser.ParserException: XMLParser: Bad Attribute value: ' or " expected!(http://172.25.30.195:80/WebService/WebServiceApp.nsf/wsGetSuperior?OpenAgent, row:3, col:96)
at com.sap.engine.lib.xml.parser.XMLParser.scanAttValue(XMLParser.java:1402)
at com.sap.engine.lib.xml.parser.XMLParser.scanAttList(XMLParser.java:1576)
at com.sap.engine.lib.xml.parser.XMLParser.scanElement(XMLParser.java:1719)
at com.sap.engine.lib.xml.parser.XMLParser.scanContent(XMLParser.java:2449)
at com.sap.engine.lib.xml.parser.XMLParser.scanElement(XMLParser.java:1848)
at com.sap.engine.lib.xml.parser.XMLParser.scanContent(XMLParser.java:2449)
at com.sap.engine.lib.xml.parser.XMLParser.scanElement(XMLParser.java:1848)
at com.sap.engine.lib.xml.parser.XMLParser.scanContent(XMLParser.java:2449)
at com.sap.engine.lib.xml.parser.XMLParser.scanElement(XMLParser.java:1848)
at com.sap.engine.lib.xml.parser.XMLParser.scanContent(XMLParser.java:2449)
at com.sap.engine.lib.xml.parser.XMLParser.scanElement(XMLParser.java:1848)
at com.sap.engine.lib.xml.parser.XMLParser.scanDocument(XMLParser.java:2852)
at com.sap.engine.lib.xml.parser.XMLParser.parse0(XMLParser.java:229)
at com.sap.engine.lib.xml.parser.AbstractXMLParser.parseAndCatchException(AbstractXMLParser.java:145)
at com.sap.engine.lib.xml.parser.AbstractXMLParser.parse(AbstractXMLParser.java:160)
at com.sap.engine.lib.xml.parser.AbstractXMLParser.parse(AbstractXMLParser.java:261)
at com.sap.engine.lib.xml.parser.Parser.parse_DTDValidation(Parser.java:282)
at com.sap.engine.lib.xml.parser.Parser.parse(Parser.java:293)
at com.sap.engine.lib.xml.parser.DOMParser.parse(DOMParser.java:101)
... 72 more -
Adapter Module Receiver File Adapter
Hi All,
I am getting file name in the Mapping in my target structure in a field FILENAME and i want to use this field to create a file at the target with the name as the value in FILENAME.
I have to develop this by using Adapter Module.
Note : This can be done by Variable Substitution and Dynamic Configuration UDF.But i want to implement the same by using adapter module.
Can somebody help me out in getting the FILENAME from mapping inside the module process method of module.
Thanks,
ZabiTry this..
private Map param;
DynamicConfiguration conf = (DynamicConfiguration) param.get(
StreamTransformationConstants.DYNAMIC_CONFIGURATION);
DynamicConfigurationKey KEY_FILENAME = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","FileName");
String Filename = conf.get(KEY_FILENAME);[/code]
Thanks
Sebin
Maybe you are looking for
-
Work Item not getting logically deleted
Hi All, We have created a custom workflow for PR approval at Item Level. I have RELEASE STEP CREATED as triggering event. I have used a FORK with 5 branches with 4 wait events and min cond as 1. The inherited business object ZBUS2009 has been created
-
Understand this is a formum not a platform for complaint but I am just so frustrated and also found that Adobe has escaped every route and successfully avoided us contacting them so I have to steam out my anger here so that everyone is aware of their
-
Is there anyway to stream video from a Mac running 10.5.7 to a PS3? If so, what do I need to make this happen? Thanks!
-
I have SBO 2005 A on my computer. I have just downloaded SBO 2005 SP1. What are the differences between SBO 2005 and SBO 2005 SP1?
-
New Hub 4 Wireless connection issue
Hi There Looking for bit of help/advice. I recently upgraded my router from the BT hub 3 to Hub 4. I am having issues with my devices picking up wireless signals in certain parts of the house. Never had this issue with the Hub 3. Has anyone else ex