Change namespace in generated WebService

Hello experts,
i have to provide a webservice with three methods for an external Client.
So i created three functions in a function group. From the function group i autocreated my webservice with the wizzard. I changed the external/internal mapping properly, activate the webservice and create with soamanager a service and an endpoint and so on...
When i create a client with the autogenerated WSDL from the WebService, i can call and reach the autogenerated Webservice from this client.
The problem is: The external client cant reach our webservice. We have solved all problems with firewalls and certificates. The remaining problem is the namespace. The external clients request (we cant change it and have to provide a suitable webservice) with the namespace "urn:extnamespace" cant reach our servicepoint (error "service >extnamespace:Connect< not supported") :
<SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:extnamespace="urn:extnamespace">
<SOAP-ENV:Body>
  <extnamespace:Connect>
    <token>123456</token>
  </extnamespace:Connect>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
From our test- client we use successfully this with the namespace "urn:sap-com:document:sap:rfc:functions"::
<SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:extnamespace="urn:sap-com:document:sap:rfc:functions">
<SOAP-ENV:Body>
  <extnamespace:Connect>
    <token>123456</token>
  </extnamespace:Connect>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
The wizzard have automaticaly generated the namespace "urn:sap-com:document:sap:rfc:functions". The external Client use another namespace. We have no option to change the external client or request of it. We need to provide a suitable WebService which use the same namespace.
We found no possibility to say the generation wizzard to use another namespace. Also we found no possibility with soamanager to change it.  When we change the namespace in XSLT-Transformation with STRANS and call the WebService from our test client, we get allways the error "service >extnamespace:Connect< not supported".
The following links seems to be good on first sight, but dont help us:
[Changing SOAP Namespace for Web Service;
[service.sap.com/notes]   sap note 853824
If there is no way to change the namespace, we have to create the webservice manually. Is there a suitable example for this job available?
Greetings & thank you very much for your help!
Edited by: JosipI on Dec 17, 2010 3:16 PM

We have created a server interface in XI with the wsdl excepted by the external client. Then created a server proxy with this interface  in our sap system. Then we have implemented the generated methodes by calling existing functions. It works fine.
Thanks a lot!
Edited by: JosipI on Dec 23, 2010 1:24 PM
Edited by: JosipI on Dec 23, 2010 1:25 PM

Similar Messages

  • Mapping namespace to generated package name (clientgen)

    Hello,
    We have a need to map the namespace of the generated bean artifacts from clientgen to a different package name. This could be done prior to weblogic 10 with the typePackageName attribute of clientgen but this is no longer supported in weblogic 10. Is there another way to do this? Note we cannot change the namespace of the webservice wsdl we are generating the client for.
    Thank you!
    Julia Allen

    Use the <binding> child element to specify one of the following:
    * For JAX-WS, one or more customization files that specify one or more of the following:
    o JAX-WS and JAXB custom binding declarations. For more information, see “Customizing XML Schema-to-Java Mapping Using Binding Declarations” in Getting Started With WebLogic Web Services Using JAX-WS.
    o SOAP handler files. For more information, see “Creating and Using SOAP Message Handlers” in Programming Advance Features of WebLogic Web Services Using JAX-WS.
    * For JAX-RPC, one or more XMLBeans configuration files, which by convention end in .xsdconfig. Use this element if your Web Service uses Apache XMLBeans data types as parameters or return values.
    The <binding> element is similar to the standard Ant <Fileset> element and has all the same attributes. See the Apache Ant documentation on the Fileset element for the full list of attributes you can specify.
    Note:      The <binding> element replaces the <xsdConfig> element, which is deprecated as of version 10.0 of WebLogic Server.
    See here for detail.

  • JDev generated webservices encodes XML output from PL/SQL procedure

    I have a PL/SQL packaged procedure which takes some input parameters and produces one output parameter. The output parameter is of type CLOB and after the procedure has run, it contains a big piece of XML data.
    Using JDeveloper 10.1.3.1, I've published this packaged procedure as a webservice. The generated webservice is fine and works, except for one tiny little issue: the XML that is taken from the output parameter is encoded.
    Here is an example of the SOAP message that the webservice returns:
    <?xml version="1.0" encoding="UTF-8"?>
    <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:ns0="http://gbv0300u/GBV0300U.wsdl/types/"><env:Body><ns0:gbv0300uResponse
    Element><ns0:result><ns0:obvglijstOut> & gt;type>GBV0001& gt ;/type& lt;
    & gt;diensten& lt;
    & gt;dienst>some value& gt;/dienst& lt;
    & gt;/diensten& lt;
    </ns0:obvglijstOut></ns0:result></ns0:gbv0300uResponseElement></env:Body></env:Envelope>
    (I've manually added an extra space between the & and lt; or gt; to make sure a browser will not translate it into a < or >!)
    The contents of the <ns0:obvglijstOut> element are filled with the output parameter from the PL/SQL package.
    How can I change the generated webservice, so the output from the PL/SQL package is used as is instead of being encoded?

    Update: I've tested a bit more by adding some output statements to the java code that JDeveloper generated. I'm now 100% sure the PL/SQL code gives the XML data correctly to the webservice.
    At this moment my guess is that somewhere in the WSDL definition there is something that enables the encoding of the data. But I'm not sure.
    Any help is greatly appreciated.

  • Generated webservices give null result in Flex 3

    Hi there,  I have a web service on my localhost. Calling this from a PHP page works fine and it returns the expected results. (I pass 2 values and it returns a different string depending on the values passed).
    However, in Flex 3, I have generated the webservice proxy classes using the "Data" | "Manage Web Services" dialog.  I am consuming these services using the following code:
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
         <mx:Button click="clickHandler(event)"/>
         <mx:Script>
              <![CDATA[
                   import generated.webservices.*;
                   import mx.controls.Alert;
                   import mx.rpc.events.FaultEvent;
                   public var _ws:SalesService = new SalesService();
                   private function clickHandler(_e:MouseEvent):void
                        _ws.addonsaleEventListener(resultHandler);
                        _ws.addSalesServiceFaultEventListener(faultHandler);
                        _ws.onsale(10,90);
                   public function resultHandler(_e:OnsaleResultEvent):void
                        if(_e.result == null)
                             Alert.show("result is: null");
                        else
                             Alert.show("result is: "+_e.result);
                   public function faultHandler(_e:FaultEvent):void
                        Alert.show(_e.message.toString());
              ]]>
         </mx:Script>
    </mx:Application>
    The "resultHandler" method is called and the "faultHandler" method is not called, which suggests a result is returned, but _e.result is null in the "resultHandler" method.
    Can anyone see if I am missing something in the actionscript?
    Andrew.
    p.s.
    I can post the generated proxy classes, or even the wsdl for the webservice if it helps.
    A.

    No, they're not exactly the same (see below).
    Calling the same web service; Flex 3 is generating a
    different result object than Flex 2, and therefore can/will not
    type the results as the Array my original app had come to expect.
    Is this by design?
    A suggested code revision would help, but...
    The question in my
    original post is still in play:
    Where would I have gone to learn this? The release notes are
    simply a cut list of changes. Is there a resource which summarizes
    the types of errors one is likely to see when porting a Flex 2 app
    to Flex 3, along with the most-likely changes as causes? When CFMX
    was first released, there was a helpful checklist of tags and
    syntax to help you audit your CF5 for the upgrade. Has one of your
    gurus blogged something like this for FX3 and I just can't find it?

  • Changing Database connection on webservice deployment

    Hi All,
    I am having a problem changing the Database connection when deploying a PL/SQL generated webservice.
    What I have done is to use the WebService wizard to create a webservice based on a database Pl/SQL procedure. During this you have to specify the database connection (which initially is our dev server).
    When I come to deploy the service to our production platform I want to change the database descriptor name to point to an existing App Server data source.
    This is the problem - the Database Connection information is protected in the properties of the webservice - which means I cannot deploy to our production platform with the connection names I need.
    I can change the names of the Connections defined in the Connections tab - but then I cannot access the webservice in JDev.
    Everytime I deploy to our production platform I keep getting the development data sources created.
    Basically I need to develop a PL/SQL webservice using a Development connection (with a unique connection name), and then deploy to a production application server (10g AS) with a different connection name that points at our production env.
    I could create generic names, but that then would make my development system very confusing with the potential of messing up the production platform.
    Anyone got any ideas????
    Thanks and Regards
    Neil

    When you deploy the web service to the app server, if the connection to the other database is available from JDev at deployment time, the data sources xml file should be set up correctly with the db connection info. Otherwise this will have to be modified by hand on the app server to contain the connection details for the other DB.
    There are 3 files that will also have to be hand modified to reflect the different db connection details. 2 deployment descriptors, web.xml and oracle-webservices.xml which have references to the connection's jndi name, and also one of the JPublisher generated classes (the one whose name ends in 'Base') also has references to the jndi name (to look up the connection from the data source file) which will have to be modified, recompiled and redeployed.
    The simplest way to change the connection would actually be to leave everything alone and just modify the data sources xml file on the server such that the same jndi lookup points to a new connection, but it looks like the customer wants to change the name as well.
    An alternative to all this hand editing is to regenerate the service against the producion DB connection, test & then deploy the service.
    dai
    JDev devt. team

  • How do we create generate webservices.xml file?

    Hi all,
    Im new to webservices...
    im able to generate mapping.xml file using wsgenerate
    but i dont know how do we generate webservices.xml.
    Im waiting for ur reply.
    http://tech.groups.yahoo.com/group/completeJava/
    http://tech.groups.yahoo.com/group/completeJava/messages
    http://completejava-group.blogspot.com/

    You use the web interface of xmlsidecar generator made by Johannes Henseler and the push the button there "generate". Copy paste that into a plain text file and then change tex extension from txt to xml. That's how you do a sidecar.xml the easy way.
    Afterwards, yo've got to import "multiple files" (or "many files"... my DPS is a Spanish one) from Folio Builder.
    If the folder are structured properly, folio builder will start swallowing the data of sidecar and uploading the articles.
    Right now, while posting this, my pc is doing that with about one hundred articles. As happy and busy as a beaver in heat
    Gustavo (Posting from Madrid)

  • Weblogic generated webservice WSI compliant?

    Hi,
    As a basic profile/WSI-unaware developer I have been asked to ensure that the webservice I am about to develop using weblogic servicegen is WSI compliant.
    Thus I have downloaded the official WSI compliance test tool from www.ws-i.org and tried to to run it my newly generated webservice.
    The WSI test tool complains
    "Element 'soap:binding' must have no character or element information item [children]"
    Thus I have tried to change the generated construct
    <soap:binding style="rpc"
    transport="http://schemas.xmlsoap.org/soap/http">
    </soap:binding>
    to the (I think) equivalent
    <soap:binding style="rpc"
    transport="http://schemas.xmlsoap.org/soap/http"/>
    - which causes the test tool to succeed.
    Am I rigth considering this to be an error in the WSI test tool?
    Next the test fails on a return type Attribute[], which is wsdl'ed as an unbounded ArrayOfAttribute. I believe the error is that the Array is unbounded (no minoccurs/maxoccurs). Is there any way to specify array boundaries to the servicegen task?
    Regards
    Peter Buus

    What error are you getting in your client? The WSDLs are equivalent, one just uses annonymous complexTypes and the other doesn't.

  • How to generate Webservices.xml using tool in Sun One App Server?

    How to generate Webservices.xml using tool in Sun One App Server?

    Hi,
    The build.xml file should be in a directory from where
    you are running the asant command.
    To resolve the common.xml file not found error,
    open your build.xml and check from which location the common.xml file is incuded.
    In the sample application it is four directories above
    the directory where build.xml is located.
    You can copy the common.xml in the current directory and then change the following in your build.xml
    <!ENTITY include SYSTEM "../../../../common.xml">
    to <!ENTITY include SYSTEM "common.xml">
    Hope this helps.
    Get back in case you have more issues

  • Inbound IDOC error (Name MARA is not in the namespace for generated BW Metaobjects)

    Hi everybody,
    we are currently having some issues with importing idocs into our ERP DEV System and i cannot figure out what the problem could be.
    I am trying to import an IDOC Type ARTMAS (5) but i keep getting the following error "Name MARA is not in the namespace for generated BW Metaobjects"
    The system is a ERP only system with no BI content activated at all.
    I don´t find any more errors nor any dumps or SLG1 entries related to this issue.
    Did someone already experienced that kind of problem, or do some of you maybe have an idea where to have a deeper look.
    thanks & best regards
    Peter
    EDIT:
    Running on ERP 6.0 EHP 7 SPS 4

    Hi Ganesh,
    I guess there is something wrong with the data in the ODS.
    Check this post:
    Re: error 18 in the update!
    Bye
    Dinesh

  • Name TCURC is not in the namespace for generated BI meta objects

    Hi,
    When I try to load data into infocube, I get a short dump during the DTP load with the below message
    UNCAUGHT_EXCEPTION
    Exception: CX_RSR_X_MESSAGE
    Upon analysing the dump analysis I found the below system fields
    SY-MSGTY E
    SY-MSGID R7
    SY-MSGNO 019
    SY-MSGV1 TCURC
    which gives the message text "Name TCURC is not in the namespace for generated BI meta objects"
    If I remove the mapping with Amount KF in the TRFN and load data it works fine without error but on mapping the KF with currency unit I get this error.It is something related to Currency but I'm unable to figure out the problem.
    Any suggestions on what could be the problem?
    Thanks.

    Is this the real error?
    Please, can you check the currency conversion with the function module CONVERT_TO_LOCAL_CURRENCY?
    Have you customize the currency-tables? Use the functions RSA1 -> source system -> context menu -> global settings + exchange rate
    Sven

  • Column numbers are changed in the generated xls report after fix

    We are seeing a new issue with the solution provided by the support person for issue 302892066(PWC - Formatting is lost when exporting a report to excel format).
    The new issue,
    As a result of the fix for case 302892066, column numbers are changed in the generated xls report. This breaks the post-processing formulas used by customers in the Excel reports.

    Shyamala, if this is a CR desinger issue, please post this query to the Crystal Reports Design
    forum:
    SAP Crystal Reports
    If this is an applicationi development issue, post to the Developer support forum:
    https://www.sdn.sap.com/irj/sdn/businessobjects-sdk-forums
    The forums are monitored by qualified technicians and you will get a faster response there.
    Thank you for your understanding,
    Ludek

  • Generating Webservice using HTTPS in  XI.

    Hi Experts,
         I have generated webservice in XI using http , and i have tested using infopath soap client, its working fine.  I have generated webservice in XI using htpps using the same scenario,  when i am testing using infopath as soap client and tested, its giving error, request is not hitting the XI system at all. do i need to configure any certificate in infopath or in XI server, please can anyone advice. i have configured HPPTS without client authentication in SOAP adapter.
    Thanks,
    Dhanush

    Hi Experts,
      I am not able to get exact answer after reading the sap.help.com, sap notes.
    My scenario is RFC < ---> SOAP ( webservice) ,  i have generated webservice with the HTTPS and secured port of XI,  When i copy and past in IE browser, its showing status is OK,  but request is not hitting the XI system. what are things to be taken care at soap client and XI server side, do i need to install any certificats at client side or server side. please advice me.
    Thanks,
    Siva

  • Problem generating webservices

    Hello Experts,
    My scenario is SOAP-->IDOC.As the customer is placing std ORDERS idoc structure as SOAP input, I used std ORDERS structure as target and source structure and did a 1-1 mapping.
    I tried to generate webservice for sender SOAP channel.
    Tools>Define Webservices>I gave the sender soap URL and navigated to the next screen to input the ORDERS message interface but I didn't see ORDERS in the list when I clicked F4.I'm not able to see my SWC at all.
    I did SXI_CACHE cache refresh.But no use.
    My design objects and configuration objects are active.
    Please advise.
    Shanthi.

    Hi,
    Thanks for your answers.
    I created the sender message interface and was able to generate Webservice.
    But now, when I tried to test the scenario with Altova XML spy, I got the following error.
    com.sap.aii.af.ra.ms.api.RecoverableException: com.sap.aii.af.ra.ms.api.DeliveryException: XIAdapter:ATTRIBUTE_BE_NOT_SUPP.
    Do I need to create receiver message interface as well?
    Can somebody help me to solve this.
    Shanthi.

  • Error generating WebServices thro' Axis

    Hi , On generating webservices for a simple program ( which add's two integer) I am getting following error in client side -
    AxisFault
    faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Client
    faultSubcode:
    faultString: java.lang.InstantiationException: com.infosys.WebService.WebServiceProcessor
    faultActor:
    faultNode:
    faultDetail:
    {_http://xml.apache.org/axis/}stackTrace:java.lang.InstantiationException_: com.infosys.WebService.WebServiceProcessor
    at org.apache.axis.message.SOAPFaultBuilder.createFault(_SOAPFaultBuilder.java:222_)
    at org.apache.axis.message.SOAPFaultBuilder.endElement(_SOAPFaultBuilder.java:129_)
    at org.apache.axis.encoding.DeserializationContext.endElement(_DeserializationContext.java:1087_)
    at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(Unknown Source)
    at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unknown Source)
    at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(Unknown Source)
    at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unknown Source)
    at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(Unknown Source)
    at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
    at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
    at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
    at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source)
    at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown Source)
    at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
    at javax.xml.parsers.SAXParser.parse(Unknown Source)
    at org.apache.axis.encoding.DeserializationContext.parse(_DeserializationContext.java:227_)
    at org.apache.axis.SOAPPart.getAsSOAPEnvelope(_SOAPPart.java:696_)
    at org.apache.axis.Message.getSOAPEnvelope(_Message.java:435_)
    at org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(_MustUnderstandChecker.java:62_)
    at org.apache.axis.client.AxisClient.invoke(_AxisClient.java:206_)
    at org.apache.axis.client.Call.invokeEngine(_Call.java:2784_)
    at org.apache.axis.client.Call.invoke(_Call.java:2767_)
    at org.apache.axis.client.Call.invoke(_Call.java:2443_)
    at org.apache.axis.client.Call.invoke(_Call.java:2366_)
    at org.apache.axis.client.Call.invoke(_Call.java:1812_)
    at com.infosys.WebService.WebServiceProcessorSoapBindingStub.addNumber(_WebServiceProcessorSoapBindingStub.java:108_)
    at com.infosys.WebService.WebServiceProcessorProxy.addNumber(_WebServiceProcessorProxy.java:50_)
    at com.infosys.WebService.WebTest.main(_WebTest.java:16_)
    Can anybody giude as what may be the problem?The server side Implementation class can be instantiated.

    Hi,
    Class WebServiceProcessor is an interface for the webservices. On instantiating its implementation class , it is thrwoing the above mentioned error in client side . Both cleint and server component is a part of Web Component and deployed in server , so those all should be in runtime classpath.
    Can you tell me exactly what I need to do here?

  • Name is not in the namespace for generated BW Metaobjects

    Hi Experts,
    I am facing errors while loading data from ods to cube, thru init run,
    1."Name is not in the namespace for generated BW Metaobjects"
    2.Also "Error 18 in the update "
    Can anyone help me out in resolving this issue.
    Thanks in advance.
    Points rewarded.

    Hi Ganesh,
    I guess there is something wrong with the data in the ODS.
    Check this post:
    Re: error 18 in the update!
    Bye
    Dinesh

Maybe you are looking for

  • How do I return a numeric value to a Sapscript

    Hi, I'm calling a subroutine from a sapscript using the perform command. I'm passing a material number to the routine and it is suppose to return the unit price of the material to the sapscript form. This is not working because the field is a currenc

  • How can I change my profile photo?

    How can I change my profile photo?

  • Live Streaming Using my Webcam As a secruity camera

    I'm lost here someone please help, : \ im trying to use my isight as a security camera over the internet so i can watch my dog i just got her. So the question is what software out there i can use to put my webcam as a camera ( again my powerbook is k

  • FTP Option isn't working RH9

    We noticed that the files appear to go through, when we published to an FTP site. The GUI shows progress, and but when we later checked the server, the files were not there.  As a test we deleted all files and directories off the server and started a

  • Making a field mandatory in additional data tab in sales area data in XD01/XD02

    Hi, Making fields in additional data tab in sales area data in XD01/XD02 as mandatory is not achievable through configuration. Also, user exit SAPMF02D was not helpful in achieving this. Kindly help me on this.