Modify content of wsdl file

I saw from some threads where problem with wsdl file importing is solved by deleting some parts of the wsdl.
Is that safe to do that? Why the format of 'request' or 'response' file changed from the one defined by web services (original wsdl), it could still work? I have doubt about that.
Please advise

Hi Rokie !
It all depends on what are you exactly modifying or deleting in the WSDL file. Sometimes, there are declarations that are not fully compatible with XI. If you don't make structural changes, it may still work. For example, if the WDSL request has an optional field, and its declaration is giving any kind of error while importing in XI, you could try to remove that declaration in WSDL and try that way to debug.
Regards,
Matias.

Similar Messages

  • How to modify a standard wsdl file ?

    Hi,
    we need to modify a standard WSDL SAP's file, but we don't know how to do it and if it is possible.
    We use SAP 4.7 with WAS 6.20
    ex : - targetnamespace must be modify to include an personal value
    - WSDL's targetnamespace must be modify to include the level of our application version
    How can we make that ?
    regards

    This is asked, and answered a lot, a search on this fine forum will give you many better answers than this.
    Jars: Double Clickable on Windows & MacOS & some UNIX-alikes.
    --- http://java.sun.com/docs/books/tutorial/jar/index.html ---
    WebStart: Double Clickable, autoupdates, and other funky stuff, need to know about JARS first
    --- http://java.sun.com/products/javawebstart/ ---
    Evil Hack: You can supply a .bat/.sh file, or a thin .exe wrapper, but tis evil.
    I recomend you read the tutorial on Jars, you can then use the Archive Wizard in JBuilder ( File -> New -> Archive ) to create a JAR file.

  • View then modify content of xml file.

    I am new in Java world and my background is database admin. What I am trying to achieve here is write a small java scripts code which would open connections.xml allow user to update connection definition.
    So here is what I do using java scripts, I load the connections.xml:
    xmlDoc.load("connections.xml");
    Then I disply the current conection def:
    var x=xmlDoc.getElementsByTagName("StringRefAddr");
    for (var i=0;i<x.length;i++)
    document.write("<tr>");
    document.write("<td>");
    document.write(x.getElementsByTagName("Contents")[0].childNodes[0].nodeValue);
    document.write("</td>");
    document.write("</table>");
    But this only displays the content of connections.xml.
    What is the code to allow user to actually modify what he or she is seeing displayed?
    If java scripts is not the appropriate way to do this then please advise on how to do this the simplest way possible.
    Please advise.
    Thanks.
    Bobby.

    So you're reading in this XML document and extracting some bits to display to the user? And then when the user changes those bits and says OK you are going to write out a modified XML document?
    Actually, never mind. Figure out what you are going to do and start doing it. Then when you run into a problem, post a specific question about that problem. It appears your question is actually "I don't know what I should do" and it isn't possible to answer that on a forum.

  • Modify contents of .htm file

    I have a .htm file that contains hundreds of links. If I hover the mouse over each link I can see the contents of that link. I want to change a constant in each for these links from "aaa" to "bbb". Is there a way to do this? What tool would I use to perform this? Thanks, Mark

    Note: This thread was originally posted in the [Conventional & Interruptable IO|http://forums.sun.com/forum.jspa?forumID=535] forum, but moved to this forum for closer topic alignment.

  • Java2WSDL hooks to modify generated WSDL file

    I need to programmatically modify the contents of the WSDL file generated by the Java2WSDL command.
    How is this done, or is it possible?
    The class that I�m using to generates the WSDL from works fine, although a portion of it is missing due to the fact that the class uses meta-data to construct/create this section. (which is what I would have expected anyway).
    That�s why I would like to insert the missing piece during the construction of the WSDL.
    Basically Java2WSDL hooks

    I guess the original name in PL/SQL looks like p_ojr, p_ritid, etc.. If you are using 10.1.3 assembler (wsa.jar), I can give you a recipe on how to customize the name mapping. It would help if you can post the PL/SQL declaration part. I can less sure about wheter JDeveloper allows such customization.

  • Modifying and reading the WSDL file

    I�ve got some questions about modifying and reading the WSDL file:�
    READING
    I want to read the elements of a determinated type (for example, documentation) from an WSDL that is in an URI. How can I do it?
    I�ve been trying with the api from IBM WSDL4J, but I wasnt able to create an Element from type "documentation" to search it (if that is the way...)
    MODIFYING
    How can I insert in an WSDL file a new element (for example documentation) in an exactly place?
    Any help is grateful,
    Thanks in advance
    Gobellot

    The problem is I want to insert documentation elements (and that is not done automatically by the jwsdp (unless i dont know how to do it, please tell me if there is a way) and I want to interpret too some things from the documentation elements so I have to read it separately because de wsdltojava doesnt do anything special for that.
    thanks anyway
    Gobellot

  • How to get contents of Soap Over JMS web service's wsdl file

    Hi,
    Is there a way to get the soap over jms webservice's wsdl file in browser? if yes please provide me the details how to get it.
    OR how can i get the contensts of WSDL file for soap over jms wsdl file.
    thanks in advance.

    I have the same question ("Assuming I can generate a wsdl file, can I recreate the SOAP request message from the WSDL file automatically (that matches the original request, which is hand build by me?)")
    Have you already found an answer to this?

  • Modifying the contents of text file ini j2me

    Hi,
    I'm developing a application in j2me wherein i need to erase the previous stored contents fromthe text file and store new content submitted thru the front end program. Kindly please suggest me how to proceed in this regard.
    Thanks

    If you want to change an ini file in the jar file: you can't do that.
    You can however store the changes in the RMS.

  • Wsdl file

    Hi...All,
    i am doing RFC-SOAP Scenario, for this i need WSDL File is required for my requirement. my client is not providing wsdl file, i want to generate the wsdl file,  i dont know how to genarate the wsdl file..pls suggest me to generate the wsdl file..
    regards,
    Jain.

    Hello Jain,
    http://help.sap.com/saphelp_nw04/helpdata/en/fc/5ad93f130f9215e10000000a155106/frameset.htm
    Configuring Your WSDL File
    Applicable to: remote role assignment, remote delta link, WSRP application sharing
    This procedure is relevant only for producer portals running NW7.0 SPS7 and earlier. Later versions use an automated service for providing WSDL information to registering consumers over HTTP and HTTPS protocols.
    Use
    To describe the WSRP services provided by your portal server (the producer) and the set of operations within each service, you need to setup a WSDL file on your portal. When a consumer connects to your portal to retrieve content, the system administrator connects to this WSDL file.
    A standard WSDL template file is automatically created for you when you install the portal. You need to configure the settings in the file based on your system landscape.
    You can generate multiple WSDL files and configure each one for a specific use case. For example: one for a regular network proxy and another for a reverse proxy; or (ii) one for HTTP connectivity and another for HTTPS. Make sure you supply your content consumers with the URL to the appropriate WSDL file.
    In a cluster environment, the WSDL file needs to be configured, as described below, on every server node.
    Once a consumer has registered on your portal, the WSDL file is no longer needed by the consumer, unless the consumer needs to reregister after unregistering. You can therefore edit its contents at any time.
    If you move the WSDL file to a new location, you need to provide the updated path to consumers that have not yet registered or need to reregister. These consumers need to update the WSDL path in the properties of their existing producer object (see Editing Connection Properties to Producers).
    Procedure
           1.      In the producer server, browse to the following folder:
    Windows: c:usrsap<SID>JC<x>j2eeclusterserver<node_number>appssap.comirjservlet_jspirj
    ootportalappscom.sap.portal.ivs.wsrpservicewsdl
    UNIX: /usr/sap/<SID>/JC<x>/j2ee/cluster/server<node_number>/apps/sap.com/irj/servlet_jsp/irj/root/portalapps/com.sap.portal.ivs.wsrpservice/wsdl
           2.      In any text-based editor, open the file: wsdl.html
           3.      Note that all four services in the WSDL file reference the same servlet. The relevant WSDL information regarding your producer portal is described in this servlet. In most cases, you do not need to modify referenced servlet.
    By default, each service references the WSRP servlet at: http://localhost:51000/irj/servlet/prt/soap/AutoGenProducer?style=doc_lit
    For each service, do the following:
                                a.      Specify the Web protocol through which the WSRP servlet is accessible: http or https
                                b.      Replace the default localhost value with the host name of your portal.
                                c.      Replace the default 51000 value with the port number of your portal (the port must match the Web protocol you have defined).
    If you are using a reverse proxy, enter instead the protocol, host address, and port of the reverse proxy.
           4.      Save the WSDL file.
    We recommend you make a backup of the WSDL file in case it is overwritten during a portal system upgrade.
    Thanks,
    Satya Kumar
    Reward if it is useful

  • Incomplete WSDL file generated

    Hi,
    I am testing synchronous processes deployed to BPEL PM 10.1.2.0.2 running on Linux. There are 20 processes deployed, and randomly I encounter the following problem: when testing a process (may be any one), the caller encounters a WSDL validation error with the sync process.
    When calling from another BPEL process, the error goes along the lines of: Cannot find binding operation definition based on wsaAction='null', and soapAction='process' in .......wsdl. When testing from Soap UI, an error message states there is nothing to import. However, the process can still be invoked from the BPEL test console.
    When I check the WSDL file of the process on the server it is incomplete, missing the <binding> and <service> tags and their contents. To solve the problem, I redeploy the process from JDeveloper (without modifying it), and the WSDL file is then generated normally and I can once again invoke the process.
    Any ideas how to resolve this?
    Thanks,
    Nicholas

    I have an urgent need for a Sr, Oracle BPEL Developer in the Dallas Texas area. With this position, you can interview and start immediately. If you are interested or know of anyone looking please send my way.
    Warm regards,
    Kim Dobson
    Sr. Account Manager
    Eventus Group Technology Resources
    10100 N. Central Expressway
    Suite 150
    Dallas, TX 75231
    Office 469.916.4857
    Mobile 214.277.2097
    Fax 469.916.3861
    [email protected]

  • Unable to generate WebService Client with Exported (BAPI) WSDL file from XI

    Hi there,
    I, trying to setup a simple Web Service environment where I'll be exposing a BAPI as Web Service via XI.
    So these are the steps I followed:
    <b>1)</b> first I imported the BAPI meta data into my SWC in the repository. <b>2)</b> Second I defined my interrface etc.. <b>3)</b> Third I exported the generated BAPI WSDL file. <b>4)</b> Fourth, I tried to generate a Java proxy/client for my Web Service using a Java IDE (IBM WebSphere Application Developer and XML Spy).
    Now the problem is that Im not able to generate the Web Service client using the exported WSDL file, the WSDL seems not to be valid...From the generated errors in the IDE, I can see that the problem has to do somewhere/somehow with the WSDL Binding element, which input parameters do not match the input parameters of the port type.
    This is a small part of the WSDL file as generated by XI:
         <wsdl:message name="BAPI_AR_ACC_GETOPENITEMS.Input">
              <wsdl:part name="parameters" element="s0:BAPI_AR_ACC_GETOPENITEMS" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"/>
         </wsdl:message>
         <wsdl:message name="BAPI_AR_ACC_GETOPENITEMS.Output">
              <wsdl:part name="parameters" element="s0:BAPI_AR_ACC_GETOPENITEMS.Response" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"/>
         </wsdl:message>
         <wsdl:portType name="BAPI_AR_ACC_GETOPENITEMS.PortType">
              <wsdl:operation name="BAPI_AR_ACC_GETOPENITEMS">
                   <wsdl:input message="s0:BAPI_AR_ACC_GETOPENITEMS.Input"/>
                   <wsdl:output message="s0:BAPI_AR_ACC_GETOPENITEMS.Output"/>
              </wsdl:operation>
         </wsdl:portType>
         <wsdl:binding name="BAPI_AR_ACC_GETOPENITEMS.SAPBinding" type="s0:BAPI_AR_ACC_GETOPENITEMS.PortType" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
              <s0:binding style="rfc"/>
    Has anyone faced a situation like this before? Any clues where to look? I appreciate any feedback, thanks!
    Rob.
    Message was edited by: rob viana

    Hi Rob!
    I'm facing the same problem - how did you solve your issue then? I'm getting following error during generation on .NET side:
    ============================================================================================
    Error: There was an error processing 'http://server/wsdl/MIAMI_ACCDOCPost.wsdl'.
      - The document at the url http://server/wsdl/MIAMI_ACCDOCPost.wsdl
    was not recognized as a known document type.
    The error message from each known type may help you fix the problem:
    - Report from 'DISCO Document' is 'Discovery document at the URL http://server/wsdl/MIAMI_ACCDOCPost.wsdl could not be found.'.
      - The document format is not recognized (the content type is 'content/unknown').
    - Report from 'WSDL Document' is 'There is an error in XML document (2, 70138).'.
      - Value cannot be null.
    Parameter name: name
    - Report from 'XML Schema' is 'The root element of a W3C XML Schema should be <schema> and its namespace should be 'http://www.w3.org/2001/XMLSchema'.'.
    ============================================================================================
    kr Martin

  • How can i use JWSDP1.6 from Ant tool to convert .wsdl file into Java class

    Hi All,
    i m very new in the development field.plese help me...
    i have a .wsdl file and i have to make some modification in the file and return this file with build file used in Ant tool.
    means my requirement is to conver the .wsdl file into java class,modify it and convert back to wsdl file.how can i do it using JWSDP1.6 and Ant tool.
    thanks in advance...
    Vikram Singh

    lemilanais wrote:
    hello!
    I have developpe an animation with flash. before give it to othe person in order to use it, i would like to secure it by integrated a security module inside the software.Secure it from what? Being played? Copied? Deleted? Modified?
    Because, i am a java developper, i have choose Netbeans 6.1 to secure it.That has to be the most random thing I've read in some time.
    do you know how can i do to integrate my animation .swf inside my java class?Java can't play SWF files and Flash can't handle Java classes, so what you're suggesting here doesn't make a lot of sense.

  • Adaptive Webservice Model: Error in loading the WSDL file in NWDS 7.1 CE

    Hi All,
    I am trying to import WSDL using Adaptive Webservice Model into my webdynpro application. But I am unable to do so and it throws up an error as " Error in loading WSDL file. Check the error log for more details". The Content of log files has the following details
    Caused by: com.sap.engine.services.webservices.jaxrpc.exceptions.WebserviceClientException: GenericServiceFactory initialization problem.  Can not create SerializationFactoryImpl with 'null' params
    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: java.lang.IllegalArgumentException: Can not create SerializationFactoryImpl with 'null' params !
    at com.sap.engine.services.webservices.jaxrpc.encoding.SerializationFactoryImpl.<init>(SerializationFactoryImpl.java:171)
    at com.sap.engine.services.webservices.jaxrpc.encoding.TypeMappingImpl.fromXml(TypeMappingImpl.java:495)
    at com.sap.engine.services.webservices.jaxrpc.encoding.TypeMappingRegistryImpl.<init>(TypeMappingRegistryImpl.java:183)
    at com.sap.engine.services.webservices.espbase.client.dynamic.impl.DGenericServiceImpl.initTypeMappingRegistry(DGenericServiceImpl.java:108)
    at com.sap.engine.services.webservices.espbase.client.dynamic.impl.DGenericServiceImpl.<init>(DGenericServiceImpl.java:66)
    at com.sap.engine.services.webservices.espbase.client.dynamic.GenericServiceFactory.createService_NewInstance(GenericServiceFactory.java:240)
    ... 63 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: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.espbase.wsdl.exceptions.WSDLException: Invalid Response Code: (500) Internal Server Error. The requested URL was:"http://10.15.8.97:5555/soap/rpc"
         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
    Any pointer on this would be of great help.
    Thanks and Regards,
    Vishweshwara P.K.M

    Solved. Issue was with the xml schema of the web service.

  • Error creating WSDL file

    Hi all,
    I'm trying to create a WSDL file with wsdeploy from my server classes, but it fails. My build.xml process-war syntax is somewhat similar to that of the Hello example, and the procedure is just the same; first create WEB-INF, then create portable war-file and finally create deployable war-file. The deployable war, src-jaxrpc.war is created, but it doesn't contain the WSDL file. Here are its contents:
    META-INF/MANIFEST.MF
    src/Harj2IF.class
    src/Harj2Impl.class
    WEB-INF/classes/src/LibImpl.class
    WEB-INF/classes/src/LibIF.class
    WEB-INF/web.xml
    WEB-INF/jaxrpc-ri-before.xml
    WEB-INF/Library_model.xml.gz
    WEB-INF/web-before.xml
    WEB-INF/jaxrpc-ri-runtime.xml
    The error message I get with wsdeploy is this:
    [exec] info: created temporary directory: D:\Service\build\wsdeploy-generated\jaxrpc-deploy-ec04fc
    [exec] info: processing endpoint: Library
    [exec] error: class java.lang.StackTraceElement does not have a public accessible empty constructor
    [exec] info: created output war file: D:\Service\dist\src-jaxrpc.war
    My config.xml looks like this:
    <?xml version="1.0" encoding="UTF-8"?>
    <configuration
         xmlns="http://java.sun.com/xml/ns/jax-rpc/ri/config">
    <wsdl location="http://localhost:9080/src-jaxrpc/src?WSDL"
    packageName="src"/>
    </configuration>
    And my jaxrpc-ri.xml looks like this:
    <?xml version="1.0" encoding="UTF-8"?>
    <webServices
    xmlns="http://java.sun.com/xml/ns/jax-rpc/ri/dd"
    version="1.0"
    targetNamespaceBase="http://com.test/wsdl"
    typeNamespaceBase="http://com.test/types"
    urlPatternBase="/ws">
    <endpoint
    name="Library"
    displayName="Example Library v.1.0"
    description="A simple Web application"
    interface="src.LibIF"
    implementation="src.LibImpl"/>
    <endpointMapping
    endpointName="Library"
    urlPattern="/src"/>
    </webServices>
    My LibIF.java looks like this:
    package src;
    import java.rmi.Remote;
    import java.io.IOException;
    import javax.xml.parsers.ParserConfigurationException;
    import org.xml.sax.SAXException;
    import java.rmi.RemoteException;
    public interface LibIF extends Remote {
    public boolean initDocument(String fileName) throws IOException, ParserConfigurationException, SAXException, RemoteException;
    public boolean addB(String fileName) throws IOException, RemoteException;
    public boolean removeB(String fileName) throws IOException, RemoteException;
    public boolean showB(String fileName) throws IOException, ParserConfigurationException, SAXException, RemoteException;
    public boolean findB() throws IOException, RemoteException;
    public boolean rewriteB(String fileName) throws IOException, RemoteException;
    Could someone even suggest any solution based on this information?

    Are u trying out the example frm that Web Service Book frm that some publisher, He must be using xrpcc. Ok
    .........For WSDL file not to be created there are few reasons and in them I kno one. For wsdeploy tool to create the wsdl file it reads the jaxrpc-ri.xml file and the war file.
    ........for the proper working of this, the impl file shd have methods which throw Remote exceptions and no errors, of course It does compile in the earlier command execution but.. few minute errors like the above might prevent the creation of wsdl file, chk these and try
    ........Hope it wrks..........|ABY|

  • Can I include 2 diff strctures in d same wsdl file in a webservice scenario

    Hii all,
    We are using webservice to webservice scenario in which sender shld b able to send all the new rquest to the target and receive any updations or modifications from the receiver.
    Few fields are different for request and modification structures. so i created 2 diff structures for source and target.
    can any one suggest me who can i use single wsdl file for both the msgs( Creation and modifications) mean how to implement multi maping ( 1 to many) using wsdl
    Regards
    Anu

    A simple way to include the 2 structures in one WSDL would be to create a combined structure similar to the one below:
    <RequestPackage> (1 occurrence)
       <Request> (0 to n occurrence)
          <Create> (0 to 1 occurrence)
             ... Create Fields u2026
          </Create>
          <Modify> (0 to 1 occurrence)
             u2026 Modify Fields u2026
          </Modify>
       </Request>
    </RequestPackage>
    This is more complex than using 2 wsdls but it would allow you to easily send multiple create and modify records in the same message.
    - Craig

Maybe you are looking for

  • Question Re: installing PSE8

    I have Photoshop Elements 5 and will be going to PSE8. I am fairly new at using Photoshop and have a basic question. Will my present pictures and files be transfered automatically from 5 to *? Is there anything I should be careful of or do before I i

  • ReplyTo Address in BPEL 11g

    Hi', We have a BPEL process A invoking BPEL process B, and for reply we are using replyToAddress to reply back from BPEL B to the BPEL process A. We are using correlation between these 2 process. These process are in SOA 10G, Now after migration to S

  • Extending a Java Object in JavaFX

    Hi all, Im a JavaFX newbie and couldnt find an answer to my question through google or this forum. The problem seems to be really trivial though: I have the following class in java: public abstract class Car {    long wheels;    public Car(long numWh

  • Automatic decrease column width of the matrix

    Hi my gurus,    Pls help me, I made a form with a matrix. After each times I open that form, each column in matrix automatic to decrease it's width, what happen ? And how to correct it, to column is fixed width ? thanks for every helping. I'm using S

  • Load content of folder located in /content/dam/

    Hi, I'm trying to load the entire content of folder "/content/dam/myFolder". Is it possible? I've tried this piece of Java code File folder = new File("/content/dam/myFolder/"); File[] listOfFiles = folder.listFiles(); if(listOfFiles == null){%>