Receiving XML document and getting attachment via URL

What is the best method to retrieve a file from a provided URL. Here is the scenario. A system will send us an XML document via an HTTP post but the source system is unable to send us the associated attachment as a MIME attachment instead in the XML they will include a extra node with the URL to a file we need to get. What is the ideal method of retrieving this file once we receive the XML message. If the provided link was an ftp site we would hold the message in BPM and use the file adapter but since this is a full url such as http://someserver.com/myfile/file.doc we are looking for the best approach. On thought was a Java Proxy.
Regards

Hi,
there are just two approaches:
easy one - java proxy
more diffcult - creating sync adapter for http xmls
I'd go for java proxy (if possible from secutiry point of view)
as you will have the link (so no "adapter configuration" necessary in your case)
Regards,
michal
<a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions"><b>XI / PI FAQ - Frequently Asked Questions</b></a>

Similar Messages

  • Starting a process and getting presentation via URL

    Hi,
    I would like to do two things via an URL: First is starting a process (with a screenflow in the global activity) and second is seeing directly the presentation/screenflow of the current activity of a running process instance (without workspace). I would like to add these URLs in a mail, so that an user can just click on the link.
    For the last I found this code snippet here in this forum:
    url = Fuego.Server.webBUIServer + "/servlet/instanceActions?instanceStampId="
    + URLEncoder.encode(id.id + "/" + <NAME_OF_THE_ACTIVITY>)
    + "&actionId=0&iexecView=0&from=1&grabActivityId=null"
    But unfortunately it does not work for me, always getting a 404. Heard something about this WAPI, but I can not find a documentation of it and I don't know whether this solves my problem.
    Thanks for your help.
    Kind regards
    Matthias

    Hi,
    there are just two approaches:
    easy one - java proxy
    more diffcult - creating sync adapter for http xmls
    I'd go for java proxy (if possible from secutiry point of view)
    as you will have the link (so no "adapter configuration" necessary in your case)
    Regards,
    michal
    <a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions"><b>XI / PI FAQ - Frequently Asked Questions</b></a>

  • Is the transformation between XML document and 2 dimensions table important?

    To everyone:
    I am trying to write a paper on this topic.first ,i want to ask whether the transformation between XML data and table in RDBMS is important,because xml data is suitable to transfer from a point to another,but not for storage,so when the transfer begin a program(in DB2,the program is DB2 extender)should change the data format in table into a xml document.And vice versa,the destination point receive the xml document,maybe the same program would store it in table.
    so i wonder if such a program exists in the Oracle8i or later version,and the detail about how the program realizes above funciton.please tell me where can i find related paper or materials.
    thanks!

    To everyone:
    I am trying to write a paper on this topic.first ,i want to ask whether the transformation between XML data and table in RDBMS is important,because xml data is suitable to transfer from a point to another,but not for storage,so when the transfer begin a program(in DB2,the program is DB2 extender)should change the data format in table into a xml document.And vice versa,the destination point receive the xml document,maybe the same program would store it in table.
    so i wonder if such a program exists in the Oracle8i or later version,and the detail about how the program realizes above funciton.please tell me where can i find related paper or materials.
    thanks! That is all oracle XDK is for. You can transform query results to xml and xml back into RDBMS. Infact Oracle provides much more flexible way than a DB2 extender does. In DB2 you need to give a DAD before you get any XML. Oracle relies on the direct transformation of query results into XML and adds flexibility of XSL ontop of the data.
    You can get more information on XML technology section of OTN.
    Once you write the article can we get a chance to see it.

  • Poweshell script to parse a XML document to get all Leaf level nodes with Node names in CSV

    Hi Experts,
    I want to write a Powershell script to parse a XML document to get all Leaf level nodes with Node names in CSV
    <?xml version="1.0" encoding="UTF-8"?>
    <CATALOG>
       <CD>
          <TITLE>Empire Burlesque</TITLE>
          <ARTIST>Bob Dylan</ARTIST>
          <COUNTRY>USA</COUNTRY>
          <COMPANY>Columbia</COMPANY>
          <PRICE>10.90</PRICE>
          <YEAR>1985</YEAR>
       </CD>
    </CATALOG>
    Need to display this as
    CD_Tiltle, CD_ARTIST, CD_COUNTRY, CD_COMPANY, CD_PRICE, CD_YEAR
    Empire Burlesque, Bob Dylan,USA,Columbia,10.90,1985
    and so on..
    I do not want to hard code the tag names in the script.
    current example is 2 level hierarchy XML can be many level till 10 max I assume
    in that case the csv file field name will be like P1_P2_P3_NodeName as so on..
    Thanks in advance
    Prajesh

    Thankfully, I have writtenscript for ths same $node_name="";
    $node_value="";
    $reader = [system.Xml.XmlReader]::Create($xmlfile)
    while ($reader.Read())
    while ($reader.Read())
    if ($reader.IsStartElement())
    $node_name += "," + $reader.Name.ToString();
    if ($reader.Read())
    $node_value += "," + $reader.Value.Trim();
    Thanks and Regards, Prajesh Please use Marked as Answer if my post solved your problem and use Vote As Helpful if a post was useful.

  • Convert flat file to XML document and store into Oracle database

    First:
    I have a flatfile and created external table to read that file in Oracle
    Now I want to create an XML document for each row and insert into Oracle database, I think that XMLtype.
    Could you please provide me some information/steps.
    Second:
    Is there performance issues, because everyday I need to check that XML document stored in the database against the in coming file.
    Thank You.

    Oracle 11g R2 Sun Solaris
    Flat file is | (pipe delimited), so I did create an EXTERNAL Table
    row1     a|1|2|3|4
    row2     b|2|3|4|5
    row3     c|6|7|8|9
    I want to store each record as XML document. So it will be easy to compare with next day's load and make insert or update.
    The reason is:
         First day the file comes with 5 columns
         after some days, the file may carry on some additional columns more than 5
         In this case I do not want to alter table to capture those values, if I use XML than I can capture any number of columns, CORRECT!. Please make me correct If I am wrong.
         This is the only reason to try to use the XMLType (XML Document)
         On Everyday load we will be matching these XML documents and update it if there is any column's value changes
    daily average load will be 10 millions and initial setup will be 60-80 millions
         Do I have anyother option to capture the new values without altering the table.
    Please advise!.

  • Document not getting attached in SC and Bid Invitations

    documents and attachments are not getting uploaded. There is an error shown "File path for attachment is invalid".
    The docserver service(in SICF) is active. I have maintained a user of type communication(created in EBP) in docserver service.
    Inspite of this documents are not being uploaded. Is there any other setting that needs to be done?
    Amol

    Amol,
    Check you don't have blank or special characters in your file path. First try to keep it simple as "C:/mydoc.doc".
    Regards.
    Vadim

  • Transmission of XML Documents in a vector via WebService using Axis

    Hello,
    I'm trying to transmit several XML documents (belonging to a DICOM-Study) from WebService Provider to WebService consumer.
    This is my server/provider:
    public static Vector<Document> returnPatientStudies(String PatientID)
    DocumentBuilderFactory factory  = DocumentBuilderFactory.newInstance();
    DocumentBuilder        builder  = factory.newDocumentBuilder();
    File x = new File(PATH + "patient.xml");
    Document document = builder.parse(x);
    DCM2XMLFiles.add(document);This code works fine if it's executed locally in a JAVA class or via http/GET (http://.../axis/services/Gateway?method=returnPatientStudies&PatientID=123456).
    After using Axis' WSDL2Java-Tool I wrote a client:
    public static void main(String[] args) {
    GatewayServiceLocator locator = new GatewayServiceLocator();
    try {
         Gateway gateway = locator.getGateway();
         Vector<Document> documents = Gateway.returnPatientStudies("123456");
    ... Everytime I try to invoke this client-side class, I get an "org.xml.sax.SAXException: SimpleDeserializer encountered a child element, which is NOT expected, in something it was trying to deserialize."
    Obviously the client gets confused by the XML content of the vector I'm trying to transmit (this error also occurs if I transmit XML files constisting only of a single empty element <empty />).
    I think this is a simple problem, since one single XML Document can be transmitted and gets displayed on client side, but I don't have a clue how to solve this vector<Document> problem. Hope someone can help me.
    Thanks

    Hi thanks for your answer.
    I am striving to make this webservice as universal as possible. I have only been returning dumps to my calling page to try and get a view of what's going on inside the component when I call it as a webservice. I wouldn't dream or returnin these back the client.
    The major core of this idea was to create a single component that acts as a facade for a number of other components. Because of this the component needs to accept and return a dynamically variable number of arguments. Because of this I selected xml as this seemed like the ideal solution; I can pass in an out some xml that contains all the arguments. I was hoping to reuse some internal functions to provide external webservices, and use this facade architechture to add a layer of security and logging which doesn't exist with the current functions.
    Do you have any suggestions of how I could best acheive something along these lines? Has someone already created a framework or methodology for creating webservices with Coldfusion which would provide this sort of functionality out of the box?
    Thanks again
    Jim

  • Web Service Error get wsdl via URL

    Hi,
    I try to import a Webservcie as new  Model (via URL), but I get everytime following error:
    Feb 28, 2007 10:55:59 AM com.sap.ide.webdynpro.ui.service.ServicesUI [Thread[main,5,main]] ERROR: Internal error
       Plugin name: Web Dynpro Model Editor
       Plugin ID  : com.sap.ide.webdynpro.modeleditor
       Class      : com.sap.ide.webdynpro.modeleditor.wizards.model.creation.PageRenameWS
       Method     : loadNameSpacesAndModelClasses
       Message    : Cannot load NameSpaces and ModelClasses
    Class Path: D:/SAP/JDT/eclipse/plugins/com.sap.tc.cmi/_cmi_api.jar;D:/SAP/JDT/eclipse/plugins/com.sap.exception/lib/exception.jar;D:/SAP/JDT/eclipse/plugins/com.sap.engine.webservices/lib/boot.jar;D:/SAP/JDT/eclipse/plugins/com.sap.engine.webservices/lib/iq-lib.jar;D:/SAP/JDT/eclipse/plugins/com.sap.engine.webservices/lib/util.jar;D:/SAP/JDT/eclipse/plugins/com.sap.engine.webservices/lib/webservices_lib.jar;D:/SAP/JDT/eclipse/plugins/com.sap.engine.webservices/lib/webservices.jar;D:/SAP/JDT/eclipse/plugins/com.sap.engine.webservices/lib/webservices_api.jar;D:/SAP/JDT/eclipse/plugins/com.sap.engine.webservices/lib/tc_sec_wssec_lib.jar;D:/SAP/JDT/eclipse/plugins/com.sap.dictionary.runtime/lib/SapDictionaryTypesRuntime.jar;D:/SAP/JDT/eclipse/plugins/com.sap.dictionary.services/lib/SapDictionaryTypeServices.jar;D:/SAP/JDT/eclipse/plugins/com.tssap.sap.libs.logging/lib/logging.jar;D:/SAP/JDT/eclipse/plugins/com.tssap.sap.libs.logging/lib/loggingStandard.jar;D:/SAP/JDT/eclipse/plugins/com.tssap.sap.libs.logging/lib/jARM.jar;D:/SAP/JDT/eclipse/plugins/com.tssap.sap.libs.xmltoolkit/lib/sapxmltoolkit.jar;D:/SAP/JDT/eclipse/plugins/com.sap.ext.libs.webservices/lib/activation.jar;D:/SAP/JDT/eclipse/plugins/com.sap.ext.libs.webservices/lib/jaxm-api.jar;D:/SAP/JDT/eclipse/plugins/com.sap.ext.libs.webservices/lib/saaj-api.jar;D:/SAP/JDT/eclipse/plugins/com.sap.ext.libs.webservices/lib/jaxrpc-api.jar;D:/SAP/JDT/eclipse/plugins/com.sap.ext.libs.webservices/lib/jnet.jar;D:/SAP/JDT/eclipse/plugins/com.sap.ext.libs.webservices/lib/jsse.jar;D:/SAP/JDT/eclipse/plugins/com.sap.ext.libs.webservices/lib/mail.jar;D:/SAP/JDT/eclipse/plugins/com.sap.tc.webdynpro.model.webservice/lib/_webdynpro_model_webservice.jar;
    java.home: D:\j2sdk1.4.2_06
    proxyHost: http://webproxy.deutsche-boerse.de
    proxyPort: 8080
    nonProxyHosts: http://sapdephr.deutsche-boerse.de:50000|sapdephr.deutsche-boerse.de:50000|
    Temporary Directory: c:\temp\
    WSDL URL: http://sapdephr.deutsche-boerse.de:50000/WSCheckUser/Config1?wsdl
       Exception  : com.sap.tc.webdynpro.model.webservice.exception.WSModelRuntimeException: Exception on creation of service metadata for WSDL URL http://sapdephr.deutsche-boerse.de:50000/WSCheckUser/Config1?wsdl  and service factory configuration {DynamicProxy.ClassPath=D:/SAP/JDT/eclipse/plugins/com.sap.tc.cmi/_cmi_api.jar;D:/SAP/JDT/eclipse/plugins/com.sap.exception/lib/exception.jar;D:/SAP/JDT/eclipse/plugins/com.sap.engine.webservices/lib/boot.jar;D:/SAP/JDT/eclipse/plugins/com.sap.engine.webservices/lib/iq-lib.jar;D:/SAP/JDT/eclipse/plugins/com.sap.engine.webservices/lib/util.jar;D:/SAP/JDT/eclipse/plugins/com.sap.engine.webservices/lib/webservices_lib.jar;D:/SAP/JDT/eclipse/plugins/com.sap.engine.webservices/lib/webservices.jar;D:/SAP/JDT/eclipse/plugins/com.sap.engine.webservices/lib/webservices_api.jar;D:/SAP/JDT/eclipse/plugins/com.sap.engine.webservices/lib/tc_sec_wssec_lib.jar;D:/SAP/JDT/eclipse/plugins/com.sap.dictionary.runtime/lib/SapDictionaryTypesRuntime.jar;D:/SAP/JDT/eclipse/plugins/com.sap.dictionary.services/lib/SapDictionaryTypeServices.jar;D:/SAP/JDT/eclipse/plugins/com.tssap.sap.libs.logging/lib/logging.jar;D:/SAP/JDT/eclipse/plugins/com.tssap.sap.libs.logging/lib/loggingStandard.jar;D:/SAP/JDT/eclipse/plugins/com.tssap.sap.libs.logging/lib/jARM.jar;D:/SAP/JDT/eclipse/plugins/com.tssap.sap.libs.xmltoolkit/lib/sapxmltoolkit.jar;D:/SAP/JDT/eclipse/plugins/com.sap.ext.libs.webservices/lib/activation.jar;D:/SAP/JDT/eclipse/plugins/com.sap.ext.libs.webservices/lib/jaxm-api.jar;D:/SAP/JDT/eclipse/plugins/com.sap.ext.libs.webservices/lib/saaj-api.jar;D:/SAP/JDT/eclipse/plugins/com.sap.ext.libs.webservices/lib/jaxrpc-api.jar;D:/SAP/JDT/eclipse/plugins/com.sap.ext.libs.webservices/lib/jnet.jar;D:/SAP/JDT/eclipse/plugins/com.sap.ext.libs.webservices/lib/jsse.jar;D:/SAP/JDT/eclipse/plugins/com.sap.ext.libs.webservices/lib/mail.jar;D:/SAP/JDT/eclipse/plugins/com.sap.tc.webdynpro.model.webservice/lib/_webdynpro_model_webservice.jar;, DynamicProxy.HTTPPassword=, DynamicProxy.INetProxy.Bypass=http://sapdephr.deutsche-boerse.de:50000|sapdephr.deutsche-boerse.de:50000|, DynamicProxy.INetProxy.Port=8080, DynamicProxy.HTTPUserName=, DynamicProxy.Javac.path=D:\j2sdk1.4.2_06, DynamicProxy.TempDir=c:\temp\, DynamicProxy.INetProxy.Host=http://webproxy.deutsche-boerse.de}
    com.sap.tc.webdynpro.model.webservice.exception.WSModelRuntimeException: Exception on creation of service metadata for WSDL URL 'http://sapdephr.deutsche-boerse.de:50000/WSCheckUser/Config1?wsdl ' and service factory configuration '{DynamicProxy.ClassPath=D:/SAP/JDT/eclipse/plugins/com.sap.tc.cmi/_cmi_api.jar;D:/SAP/JDT/eclipse/plugins/com.sap.exception/lib/exception.jar;D:/SAP/JDT/eclipse/plugins/com.sap.engine.webservices/lib/boot.jar;D:/SAP/JDT/eclipse/plugins/com.sap.engine.webservices/lib/iq-lib.jar;D:/SAP/JDT/eclipse/plugins/com.sap.engine.webservices/lib/util.jar;D:/SAP/JDT/eclipse/plugins/com.sap.engine.webservices/lib/webservices_lib.jar;D:/SAP/JDT/eclipse/plugins/com.sap.engine.webservices/lib/webservices.jar;D:/SAP/JDT/eclipse/plugins/com.sap.engine.webservices/lib/webservices_api.jar;D:/SAP/JDT/eclipse/plugins/com.sap.engine.webservices/lib/tc_sec_wssec_lib.jar;D:/SAP/JDT/eclipse/plugins/com.sap.dictionary.runtime/lib/SapDictionaryTypesRuntime.jar;D:/SAP/JDT/eclipse/plugins/com.sap.dictionary.services/lib/SapDictionaryTypeServices.jar;D:/SAP/JDT/eclipse/plugins/com.tssap.sap.libs.logging/lib/logging.jar;D:/SAP/JDT/eclipse/plugins/com.tssap.sap.libs.logging/lib/loggingStandard.jar;D:/SAP/JDT/eclipse/plugins/com.tssap.sap.libs.logging/lib/jARM.jar;D:/SAP/JDT/eclipse/plugins/com.tssap.sap.libs.xmltoolkit/lib/sapxmltoolkit.jar;D:/SAP/JDT/eclipse/plugins/com.sap.ext.libs.webservices/lib/activation.jar;D:/SAP/JDT/eclipse/plugins/com.sap.ext.libs.webservices/lib/jaxm-api.jar;D:/SAP/JDT/eclipse/plugins/com.sap.ext.libs.webservices/lib/saaj-api.jar;D:/SAP/JDT/eclipse/plugins/com.sap.ext.libs.webservices/lib/jaxrpc-api.jar;D:/SAP/JDT/eclipse/plugins/com.sap.ext.libs.webservices/lib/jnet.jar;D:/SAP/JDT/eclipse/plugins/com.sap.ext.libs.webservices/lib/jsse.jar;D:/SAP/JDT/eclipse/plugins/com.sap.ext.libs.webservices/lib/mail.jar;D:/SAP/JDT/eclipse/plugins/com.sap.tc.webdynpro.model.webservice/lib/_webdynpro_model_webservice.jar;, DynamicProxy.HTTPPassword=, DynamicProxy.INetProxy.Bypass=http://sapdephr.deutsche-boerse.de:50000|sapdephr.deutsche-boerse.de:50000|, DynamicProxy.INetProxy.Port=8080, DynamicProxy.HTTPUserName=, DynamicProxy.Javac.path=D:\j2sdk1.4.2_06, DynamicProxy.TempDir=c:\temp\, DynamicProxy.INetProxy.Host=http://webproxy.deutsche-boerse.de}'
         at com.sap.tc.webdynpro.model.webservice.metadata.WSModelInfo.getOrCreateWsrService(WSModelInfo.java:413)
         at com.sap.tc.webdynpro.model.webservice.metadata.WSModelInfo.readOperationsFromWSDL(WSModelInfo.java:371)
         at com.sap.tc.webdynpro.model.webservice.metadata.WSModelInfo.importMetadataInternal(WSModelInfo.java:341)
         at com.sap.tc.webdynpro.model.webservice.metadata.WSModelInfo.importMetadata(WSModelInfo.java:305)
         at com.sap.tc.webdynpro.model.webservice.metadata.WSModelInfo.importMetadata(WSModelInfo.java:315)
         at com.sap.ide.webdynpro.modeleditor.wizards.model.creation.PageRenameWS.loadNameSpacesAndModelClasses(PageRenameWS.java:435)
         at com.sap.ide.webdynpro.modeleditor.wizards.model.creation.ModelDialog.nextPressed(ModelDialog.java:105)
         at org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:316)
         at org.eclipse.jface.dialogs.Dialog$1.widgetSelected(Dialog.java:423)
         at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:89)
         at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:81)
         at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:840)
         at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:2022)
         at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1729)
         at org.eclipse.jface.window.Window.runEventLoop(Window.java:583)
         at org.eclipse.jface.window.Window.open(Window.java:563)
         at com.sap.ide.webdynpro.modeleditor.ModelEditorCallback.createModel(ModelEditorCallback.java:52)
         at com.sap.ide.webdynpro.service.modeleditor.ModelService.createModelWithUI(ModelService.java:70)
         at com.sap.ide.webdynpro.service.modeleditor.ServiceWithUI.createModel(ServiceWithUI.java:49)
         at com.sap.ide.webdynpro.tsmodel.application.provider.ModelNodeProvider.createUniqueName(ModelNodeProvider.java:55)
         at com.tssap.selena.impl.model.elements.EntityImpl.createChildEntityUin(EntityImpl.java:936)
         at com.tssap.selena.impl.model.elements.EntityImpl.createChildEntity(EntityImpl.java:502)
         at com.sap.ide.webdynpro.tsmodel.application.actions.CreationAction.runInternal(CreationAction.java:76)
         at com.sap.ide.webdynpro.tsmodel.application.actions.CreationAction.access$000(CreationAction.java:24)
         at com.sap.ide.webdynpro.tsmodel.application.actions.CreationAction$1.run(CreationAction.java:51)
         at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1595)
         at com.sap.ide.webdynpro.tsmodel.application.actions.CreationAction.run(CreationAction.java:57)
         at com.sap.ide.webdynpro.projectbrowser.actions.PBCreateModelAction.run(PBCreateModelAction.java:95)
         at com.tssap.selena.model.extension.action.SelenaActionCollector$GenericElementActionWrapper.run(SelenaActionCollector.java:224)
         at com.tssap.util.ui.menu.MenuFactory$MuSiAction.saveRunAction(MenuFactory.java:1425)
         at com.tssap.util.ui.menu.MenuFactory$MuSiAction.run(MenuFactory.java:1407)
         at com.tssap.util.ui.menu.MenuFactory$DelegateAction.processInternal(MenuFactory.java:616)
         at com.tssap.util.ui.menu.MenuFactory$DelegateAction.access$100(MenuFactory.java:586)
         at com.tssap.util.ui.menu.MenuFactory$DelegateAction$BusyProcessWorker.run(MenuFactory.java:716)
         at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:69)
         at com.tssap.util.ui.menu.MenuFactory$DelegateAction.process(MenuFactory.java:610)
         at com.tssap.util.ui.menu.internal.MenuListenerFactory$ProcessAdapter.widgetSelected(MenuListenerFactory.java:172)
         at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:89)
         at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:81)
         at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:840)
         at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:2022)
         at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1729)
         at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1402)
         at org.eclipse.ui.internal.Workbench.run(Workbench.java:1385)
         at com.tssap.util.startup.WBLauncher.run(WBLauncher.java:79)
         at org.eclipse.core.internal.boot.InternalBootLoader.run(InternalBootLoader.java:858)
         at org.eclipse.core.boot.BootLoader.run(BootLoader.java:461)
         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:324)
         at com.sap.ide.eclipse.startup.Main.basicRun(Main.java:286)
         at com.sap.ide.eclipse.startup.Main.run(Main.java:795)
         at com.sap.ide.eclipse.startup.Main.main(Main.java:602)
    Caused by: com.sap.engine.services.webservices.jaxrpc.exceptions.WebserviceClientException: GenericServiceFactory initialization problem. Could not load web service model. See nested exception for details.
         at com.sap.engine.services.webservices.espbase.client.dynamic.impl.DGenericServiceImpl.generateProxyFiles(DGenericServiceImpl.java:149)
         at com.sap.engine.services.webservices.espbase.client.dynamic.impl.DGenericServiceImpl.<init>(DGenericServiceImpl.java:49)
         at com.sap.engine.services.webservices.espbase.client.dynamic.GenericServiceFactory.createService(GenericServiceFactory.java:71)
         at com.sap.tc.webdynpro.model.webservice.metadata.WSModelInfo.getOrCreateWsrService(WSModelInfo.java:411)
         ... 53 more
    Caused by: com.sap.engine.services.webservices.jaxrpc.exceptions.ProxyGeneratorException: Proxy Generator Error. Problem with WSDL file parsing. See nested message.
         at com.sap.engine.services.webservices.jaxrpc.wsdl2java.ProxyGenerator.generateProxy(ProxyGenerator.java:182)
         at com.sap.engine.services.webservices.espbase.client.dynamic.impl.DGenericServiceImpl.generateProxyFiles(DGenericServiceImpl.java:146)
         ... 56 more
    Caused by: com.sap.engine.lib.xml.util.NestedException: IO Exception occurred while parsing file:Cannot connect to http://sapdephr.deutsche-boerse.de:50000/WSCheckUser/Config1?wsdl , passing via http proxy: http://webproxy.deutsche-boerse.de:8080, used user to connect: : http://webproxy.deutsche-boerse.de -> java.io.IOException: Cannot connect to http://sapdephr.deutsche-boerse.de:50000/WSCheckUser/Config1?wsdl , passing via http proxy: http://webproxy.deutsche-boerse.de:8080, used user to connect: : http://webproxy.deutsche-boerse.de
         at com.sap.engine.services.webservices.wsdl.WSDLDOMLoader.loadDOMDocument(WSDLDOMLoader.java:1038)
         at com.sap.engine.services.webservices.wsdl.WSDLDOMLoader.loadWSDLDocument(WSDLDOMLoader.java:1125)
         at com.sap.engine.services.webservices.jaxrpc.wsdl2java.ProxyGenerator.generateProxy(ProxyGenerator.java:178)
         ... 57 more
    Caused by: java.io.IOException: Cannot connect to http://sapdephr.deutsche-boerse.de:50000/WSCheckUser/Config1?wsdl , passing via http proxy: http://webproxy.deutsche-boerse.de:8080, used user to connect: : http://webproxy.deutsche-boerse.de
         at com.sap.engine.services.webservices.tools.WSDLDownloadResolver.resolveEntity(WSDLDownloadResolver.java:161)
         at com.sap.engine.services.webservices.wsdl.WSDLDOMLoader.loadDOMDocument(WSDLDOMLoader.java:1018)
    I have configured in preferences the proxy. (Try it also without a proxy) . If I call the url in IE - the IE shows the wsdl.
    Thanks Stefan

    Hai Stefan,
    Down load the WSdl from Navigator, and then browse it for the web service model.
    NWDS 04s giving some problem while creating webservice model via URL.
    Regards,

  • Receive XML document as Webservice Response

    Hi
    I have implemented webservices using axis.This works fine.
    But I need an receive the response as an XML document.because for multiple entries of same tag name, i can parse through the document and do what ever i want.
    Also how can i attach an external xsd for a wsdl.
    I am stuck up at these two places,Your help would be appriciated
    Thanks in advance

    Web service is platform independent hence most programming languages should return basic datatypes. In your case easiest thing would be to read that XSD file and convert entire file as String and return it as String. A document object will always throw an error.
    Google to find out datatypes supported.
    Hi Everyone,
    Please let me know if this can be a quick resolution to his problem.

  • A web service that returns a xml file and gets another xml file as input?

    Hi,
    I want to create a web service which gets an xml document as input then returns again an xml document.How can I create this kind of web service?
    Is this kind of implementation is possible?
    public Document mywebservice(Document input){
    Document d;
    return d;
    or do I have to use serialization processes which I don't know very much.
    I am waiting for your help.Thank you...

    If you want to deal directly with the Document and not want the SOAP engine to serialize/deserialize the XML into Java objects, then you can easliy implement this using Axis. Look at the Axis documentation (http://ws.apache.org/axis/java/user-guide.html#ServiceStylesRPCDocumentWrappedAndMessage) under the heading "Message Services". One of the provided API methods that Axis provides is in the form you want: public Document method(Document body). Hope that helps. As for how to implement the service using Axis, that is beyond the scope of this forum. Check the Axis docs for more help on that.

  • Using xml iView to get data from URL generating rss feeds

    hi,
    I have a URL
    http://xml.weather.yahoo.com/forecastrss?p=USCA1116
    from the yahoo weather site.
    It opens XML data.
    I then created an XML iView in the following way:
    In step 3 in XML source; i typed the above URL. Clicked on Next.
    In Step 4 for Selected XML translation format I chose MY_RSS_TO_XHTMLB.
    When I preview it gives the message : Error while using XML iView, please contact your system administrator.
    I have Portal SP14.
    So as mentioned before in a forum, I went to System Administration -> System Configuration -> Service Configuration -> Applications -> com.sap.portal.ivs.httpservice-> proxy
    and changed "HTTP Proxy Host" to "proxy" and "HTTP Proxy Port" to 8080.
    Then to re start I right clicked com.sap.portal.ivs.httpservice, went to Administrate and restarted the services.
    But I still get the same message
    Error while using XML iView, please contact your system administrator.
    Can you please let me know if these 2 settings are correct.
    thx.

    Hi,
    Could you please let me know if you were able to solve this issue. Inspite of all the suggested configuration we are still getting the same error, as stated by you.
    Anyone able to overcome this issue, please reply. Also let me know if we need to consider any specific versions of portal & browser, JRE etc..
    Thanks,
    KSK

  • Issue with parsing an xml document and namespaces

    I am having an issue when parsing an xml document that includes a namespace.
    Here is my xml:
    <?xml version="1.0" encoding="utf-8"?>
    <StatusFile xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" TxCnt="247" TxTotal="5756845.31" SourceId="3" xmlns="http://www.test.com/cig/payments/optimizer/status/2004/10/">
    <Tx PmtId="350031" Amt="16739" TxSts="09" CustSts="04" ChkNum="10605770" />
    <Tx PmtId="350990" Amt="31698.66" TxSts="09" CustSts="04" ChkNum="10605821" />
    <Tx PmtId="354992" Amt="201320.08" TxSts="09" CustSts="04" />
    <Tx PmtId="349277" Amt="6675.17" TxSts="09" CustSts="04" ChkNum="10605822" />
    <Tx PmtId="354979" Amt="66949.75" TxSts="09" CustSts="04" ChkNum="10605823" />
    <Tx PmtId="349341" Amt="63258.49" TxSts="09" CustSts="04" ChkNum="10605824" />
    <Tx PmtId="350025" Amt="5866.04" TxSts="09" CustSts="04" ChkNum="10605830" />
    <Tx PmtId="350024" Amt="15671.8" TxSts="09" CustSts="04" ChkNum="10605831" />
    <Tx PmtId="346822" Amt="9880.64" TxSts="09" CustSts="04" />
    <Tx PmtId="350023" Amt="1360" TxSts="09" CustSts="04" />
    <Tx PmtId="349802" Amt="131267" TxSts="09" CustSts="04" ChkNum="10605832" />
    <Tx PmtId="343573" Amt="14532.76" TxSts="09" CustSts="04" ChkNum="10605833" />
    <Tx PmtId="352675" Amt="4436" TxSts="09" CustSts="04" />
    <Tx PmtId="350022" Amt="1260" TxSts="09" CustSts="04" ChkNum="10605834" />
    <Tx PmtId="349714" Amt="80778" TxSts="09" CustSts="04" ChkNum="10605835" />
    <Tx PmtId="352676" Amt="10136" TxSts="09" CustSts="04" ChkNum="10605836" />
    <Tx PmtId="352679" Amt="25511.69" TxSts="09" CustSts="04" ChkNum="10605837" />
    <Tx PmtId="346502" Amt="12842.69" TxSts="10" CustSts="05" />
    <Tx PmtId="346503" Amt="4232.61" TxSts="09" CustSts="04" ChkNum="10605838" />
    </StatusFile>
    Here is my current code base:
    CREATE OR REPLACE PROCEDURE ParseXML(xml VARCHAR2) IS
    myParser xmlparser.parser := xmlparser.newparser;
    myDoc xmldom.DOMNode;
    myNodes xmldom.DOMNodeList;
    myElement xmldom.DOMElement;
    trec NDE_CIG_STATUS_TRANSACTIONS%ROWTYPE;
    BEGIN
    xmlparser.parseBuffer(myParser,xml);
    myDoc := xmldom.makeNode(xmlparser.getDocument(myParser));
    myNodes := xslprocessor.selectNodes(myDoc,'//Tx');
    FOR i IN 0..xmldom.getLength(myNodes)-1 LOOP
    myElement := xmldom.makeElement(xmldom.item(buyOrders,i));
    trec.pmt_id := xmldom.getAttribute(curBuy,'PmtId');
    INSERT INTO NDE_CIG_STATUS_TRANSACTIONS(PMT_ID) VALUES (trec.pmt_id);
    END LOOP;
    COMMIT;
    END ParseXML;
    If I remove the namespace, everything works just fine. The issue is that I cannot remove the namespace.
    Anyone have any suggestions on how I can get the xslprocessor.selectNodes to recognize my namespace?
    Thanks,
    Mark Moran

    Everyone,
    Well after lots of hours spent reading web pages and blogs, etc... I was able to re-write my procedure and get it to work with different calls.
    Here is my updated code.
    PROCEDURE PARSE_STATUS_XML(P_FILE_NAME IN VARCHAR2, P_XML_FILE IN CLOB) IS
    V_PARSER XMLPARSER.PARSER := XMLPARSER.NEWPARSER;
    V_DOCUMENT XMLDOM.DOMDOCUMENT;
    V_NODES XMLDOM.DOMNODELIST;
    V_ELEMENT XMLDOM.DOMELEMENT;
    V_TBL_RECORD NDE_CIG_STATUS_TRANSACTIONS%ROWTYPE;
    BEGIN
    XMLPARSER.PARSECLOB(V_PARSER, P_XML_FILE);
    V_DOCUMENT := XMLPARSER.GETDOCUMENT(V_PARSER);
    V_ELEMENT := XMLDOM.GETDOCUMENTELEMENT(V_DOCUMENT);
    V_NODES := XMLDOM.GETELEMENTSBYTAGNAME(V_ELEMENT,'Tx','http://www.test.com/cig/payments/optimizer/status/2004/10/');
    FOR I IN 0..XMLDOM.GETLENGTH(V_NODES)-1 LOOP
    V_ELEMENT := XMLDOM.MAKEELEMENT(XMLDOM.ITEM(V_NODES,I));
    V_TBL_RECORD.PMT_ID := XMLDOM.GETATTRIBUTE(V_ELEMENT,'PmtId');
    V_TBL_RECORD.PMT_AMT := XMLDOM.GETATTRIBUTE(V_ELEMENT,'Amt');
    V_TBL_RECORD.E_STATUS_CODE := XMLDOM.GETATTRIBUTE(V_ELEMENT,'TxSts');
    V_TBL_RECORD.E_REASON_CODE := XMLDOM.GETATTRIBUTE(V_ELEMENT,'StsRsn');
    V_TBL_RECORD.E_CUSTOMER_STATUS_CODE := XMLDOM.GETATTRIBUTE(V_ELEMENT,'CustSts');
    V_TBL_RECORD.UPS_TRACKING_NBR := XMLDOM.GETATTRIBUTE(V_ELEMENT,'UpsTrcNum');
    V_TBL_RECORD.FED_REFERENCE_NBR := XMLDOM.GETATTRIBUTE(V_ELEMENT,'FedRefNum');
    V_TBL_RECORD.FIDB_TRACKING_NBR := XMLDOM.GETATTRIBUTE(V_ELEMENT,'FIDbtTrcNum');
    V_TBL_RECORD.CHECK_NBR := XMLDOM.GETATTRIBUTE(V_ELEMENT,'ChkNum');
    INSERT INTO NDE_CIG_STATUS_TRANSACTIONS(
    CREATE_DATE,
    XML_FILE_NAME,     
    PMT_ID,
    PMT_AMT,
    E_STATUS_CODE,
    E_REASON_CODE,
    E_CUSTOMER_STATUS_CODE,
    UPS_TRACKING_NBR,
    FED_REFERENCE_NBR,
    FIDB_TRACKING_NBR,
    CHECK_NBR
         VALUES (
    SYSDATE,
    P_FILE_NAME,
    V_TBL_RECORD.PMT_ID,
    V_TBL_RECORD.PMT_AMT,
    V_TBL_RECORD.E_STATUS_CODE,
    V_TBL_RECORD.E_REASON_CODE,
    V_TBL_RECORD.E_CUSTOMER_STATUS_CODE,
    V_TBL_RECORD.UPS_TRACKING_NBR,
    V_TBL_RECORD.FED_REFERENCE_NBR,
    V_TBL_RECORD.FIDB_TRACKING_NBR,
    V_TBL_RECORD.CHECK_NBR
    END LOOP;
    COMMIT;
    EXCEPTION
    WHEN OTHERS THEN
         RAISE;
    END PARSE_STATUS_XML;
    Mark

  • Changing template of document that gets attached to blanket purchase order

    Hi,
    When a blanket purchase agreement is saved. A pdf document gets attached that blanket purchase agreement. I can see that in Inquire -> View document. How does that gets attached, through which program, how can I change the template of that pdf document?
    Please suggest me.

    No cross posting
    Read the "Rules of Engagement"

  • Increment values within XML document and generate new file

    Good day Gurus of the Java World,
    I have a XML file and would like to generate a 100 unique files of this one file.
    The tags that need to be unique are UniqueID (alpha numeric field), TranAmount (numeric filed) and RefNumber (alpha numeric field).
    The rest of the tags can remain as is.
    How do I go about doing this? Please assist.
    <Payment>
    <UniqueID>48a6bd92-19c8-11e2-a2ba-000000000000</UniqueID>
    <EffectiveDate>20121018</EffectiveDate>
    <TranCode>1000</TranCode>
    <TranAmount>000000000123456</TranAmount>
    <TranDate>20121018</TranDate>
    <TranTime>014532</TranTime>
    <Check></Check>
    <DrCrInd>CR</DrCrInd>
    <Name>ABC</Name>
    <BrCode>1234</BrCode>
    <RefNumber>SALARYWAGE</RefNumber>
    <AccNumber>123456789</AccNumber>
    <BackoutCount>0</BackoutCount>
    </Payment>

    1. Parse the document into a DOM.
    2. Modify the nodes which you said you wanted modified.
    3. Serialize the DOM to a new document.
    4. Repeat steps 2 and 3 as required.

  • Putting both xml document and plain text in to the same container

    I have some configuration files written in plain text with the format 'key' = 'value'
    I want to put them into the same container with my xml document, is this possible?
    thanks

    Hi,
    yes it is. There are a couple of ways:
    1) Wrap into some XML tags and put your settings as an XML document (bad way)
    2) Use metadata of documents. You can store your plain text as metadata associated with some XML document. Also you can store a document only with metadata (i.e. with empty XML content).
    Vyacheslav

Maybe you are looking for

  • HP laptop D1E80UA is doing nothing but showing HP and running help me plz

    It's my sisters laptop all I can get it to do is HP and the little wheel is running and it won't do anything else

  • Balance sheet report - cube 0FIGL_C10 (NW04s)

    I am creating a balance sheet report using 0GL_ACCOUNT as a hierarchy. The infoprovider is 0FIGL_C10. The 0GL_ACCOUNT hierarchy has nodes: -> Stockholder's equity      --> Profit/loss current year            --> Calculated profit            --> Calcu

  • SWT Weird problem

    Hi Everyone: This is a very strange problem I've been having with my particular SWT application. Everything compiles fine, and even funs fine, but when I do run it, none of the GUI components are actually visible on the display. Here's the code: impo

  • Tabular forms and pagination

    Hi I am trying to build a tabular form in which users can add/modify hours worked on tasks by day in a month. The layout of the form is Name Month Total Mon 2/1 Thu 3/1 ... 31/1 task1 | January | 40 | 6 | 3 ... 5 task2 | January | 22 | 2 | 5 ... 3 ta

  • Score board for a game show

    Hi all, Ok here goes. I need to create a score board for a game show at work for staff.  The score board must keep score on the left and right parts of the screen. score must start as default on 0.  Then every time I press for example the left arrow