Wsdl endpoint problem

Hi everyone, i need some help, I have a wsdl that points to an external server, if I test the wsdl in WSNavigator I need to chance the end point to "Defined by the user" and set the ip of the external server because by default is "localhost" there, my problem is that when my app execute the model, it tries to reach localhost not the ip given when the wsdl was imported. My question is how i need to import the wsdl to my app to be available to change the endpoint.
Thanks !

Hi
This is how you change the endpoint dynamically in code.
wdContext.<modelNode>().bind(<modelobject>);
            <model object>.wdSetInvocationModifier(new IWDWSInvocationModifier() {
                   public void doModifyInvocation(final Object port) {
                       if ( port instanceof Stub ) {
                         final Stub stub = (Stub)port;
                         stub._setProperty(Stub.ENDPOINT_ADDRESS_PROPERTY,<endpoint>);
                       } else if (port instanceof DInterfaceInvoker) {
                         final DInterfaceInvoker invoker = (DInterfaceInvoker)port;
                         invoker.setProperty(Stub.ENDPOINT_ADDRESS_PROPERTY, <endpoint>);
                       } else{
                          throw new RuntimeException(<Error Message>);
                     public void doModifyAfterInvocation() {}
            <modelobject>.execute();
Hope this solves your problem.
cheers
Deepu

Similar Messages

  • WSDL - Java problem

    Hi all,
    I have been trying to generate a web service from a WSDL file (which, in my opinion, is the best way to create a web service when you don't already have a program). But there's some problems I run across which I can't seem to find the solution for.
    My traject should be: WSDL -> Java Files -> Compiling -> Deployment, where my primary WSDL should not be changed (or just endpoint address)
    I use JWSDP 1.2.
    1)
    When I try to replicate the helloservice, static stub example with my own WSDL file, I receive the following error:
    wscompile.bat -gen:server -d build -classpath build config-wsdl.xml
    error: generator error: no encoder for type "{http://www.w3.org/2001/XMLSchema}date" and Java type "java.util.Calendar"
    can anyone explain what this is?
    2)
    I tried -import and -keep instead of -gen:server, to get my Java files. This worked and created a lot of java files and even an implementation file, where I could create my webservice. So far it looked good, but after compiling and deploying, the service does not work. The problem is that the generated classes all have changed names (first letter lowercase, instead of uppercase), resulting in a non-working application.
    SEVERE: Exception sending context initialized event to listener instance of class com.sun.xml.rpc.server.http.JAXRPCContextListener
    java.lang.NoClassDefFoundError: MyService/MyProtocol_myOperation_ResponseStruct
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:217)
    at com.sun.xml.rpc.server.http.JAXRPCRuntimeInfoParser.loadClass(JAXRPCRuntimeInfoParser.java:150)
    Where myOperation in my WSDL file is called 'MyOperation'
    So now I'm stuck, can anybody help me or give me a step-by-step how to create a service

    Here's how I do it. I hope this won't annoy other people since this will be a long code post.
    1) Create the java interface: DateServiceInf.java:
    package MyService;
    import MyService.holders.*;
    public interface DateServiceInf extends java.rmi.Remote {
         public void setDate(java.util.Date date) throws java.rmi.RemoteException;
         public void getDate(DateHolder dholder) throws java.rmi.RemoteException;
    2) Create the java implementation: DateServiceImpl.java:
    package MyService;
    public class DateServiceImpl implements MyService.DateServiceInf{
         java.util.Date date = new java.util.Date();     //current date
         public DateServiceImpl() {
         public void getDate(MyService.holders.DateHolder dholder) throws java.rmi.RemoteException{
              dholder.setDate(date);
         public void setDate(java.util.Date date) throws java.rmi.RemoteException{
              this.date = date;
    3) Create the holder class: DateHolder.java
    package MyService.holders;
    public class DateHolder {
         private java.util.Date date;
         public DateHolder() {
              date = null;
         public java.util.Date getDate() {
              return date;
         public void setDate(java.util.Date date) {
              this.date = date;
    Compile the whole thing now.
    (you can skip to step 5 below)
    4) Using Apache axis to generate the wsdl file, assume the unzip axis1.1 is located at d:\axis-1_1 (windows bat file) and jdk at c:\j2sdk1.4.0: (make sure all files above are located in the proper directories (packages).
    @echo off
    set AXIS_HOME=d:\axis-1_1
    set AXIS_LIB=%AXIS_HOME%\lib
    set AXISCLASSPATH=%AXIS_LIB%\axis.jar;%AXIS_LIB%\commons-discovery.jar;%AXIS_LIB%\commons-logging.jar;%AXIS_LIB%\jaxrpc.jar;%AXIS_LIB%\saaj.jar;%AXIS_LIB%\log4j-1.2.8.jar;%AXIS_LIB%\xml-apis.jar;%AXIS_LIB%\xercesImpl.jar;%AXIS_LIB%\wsdl4j.jar
    c:\j2sdk1.4.0\bin\java -cp %AXISCLASSPATH%;. org.apache.axis.wsdl.Java2WSDL -l"http://www.mycomp.com/MyService" -n "urn:MyService" -p"MyService" "urn:MyService" -o MyService.wsdl MyService.DateServiceInf
    Here is the generated file using axis:
    <wsdl:definitions targetNamespace="urn:MyService" xmlns:impl="urn:MyService" xmlns:intf="urn:MyService"
    xmlns:apachesoap="http://xml.apache.org/xml-soap" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/"
    xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:tns2="http://holders.MyService"
    xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns="http://schemas.xmlsoap.org/wsdl/">
    <wsdl:types>
    <schema xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="http://holders.MyService">
    <import namespace="http://schemas.xmlsoap.org/soap/encoding/"/>
    <complexType name="DateHolder">
    <sequence>
    <element name="date" nillable="true" type="xsd:dateTime"/>
    </sequence>
    </complexType>
    </schema>
    </wsdl:types>
    <wsdl:message name="setDateResponse">
    </wsdl:message>
    <wsdl:message name="getDateResponse">
    </wsdl:message>
    <wsdl:message name="setDateRequest">
    <wsdl:part name="in0" type="xsd:dateTime"/>
    </wsdl:message>
    <wsdl:message name="getDateRequest">
    <wsdl:part name="in0" type="tns2:DateHolder"/>
    </wsdl:message>
    <wsdl:portType name="DateServiceInf">
    <wsdl:operation name="getDate" parameterOrder="in0">
    <wsdl:input name="getDateRequest" message="impl:getDateRequest"/>
    <wsdl:output name="getDateResponse" message="impl:getDateResponse"/>
    </wsdl:operation>
    <wsdl:operation name="setDate" parameterOrder="in0">
    <wsdl:input name="setDateRequest" message="impl:setDateRequest"/>
    <wsdl:output name="setDateResponse" message="impl:setDateResponse"/>
    </wsdl:operation>
    </wsdl:portType>
    <wsdl:binding name="MyServiceSoapBinding" type="impl:DateServiceInf">
    <wsdlsoap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>
    <wsdl:operation name="getDate">
    <wsdlsoap:operation soapAction=""/>
    <wsdl:input name="getDateRequest">
    <wsdlsoap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:MyService"/>
    </wsdl:input>
    <wsdl:output name="getDateResponse">
    <wsdlsoap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:MyService"/>
    </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="setDate">
    <wsdlsoap:operation soapAction=""/>
    <wsdl:input name="setDateRequest">
    <wsdlsoap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:MyService"/>
    </wsdl:input>
    <wsdl:output name="setDateResponse">
    <wsdlsoap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:MyService"/>
    </wsdl:output>
    </wsdl:operation>
    </wsdl:binding>
    <wsdl:service name="DateServiceInfService">
    <wsdl:port name="MyService" binding="impl:MyServiceSoapBinding">
    <wsdlsoap:address location="http://www.mycomp.com/MyService"/>
    </wsdl:port>
    </wsdl:service>
    </wsdl:definitions>
    5) Generate the wsdl using the Sun's implementation. Assume that the installation is located at: C:\j2sdkee1.4
    @echo off
    c:\j2sdk1.4.0\bin\java -cp . org.apache.axis.wsdl.Java2WSDL -l"http://www.mycomp.com/MyService" -n "urn:MyService" -p"MyService" "urn:MyService" -o MyService.wsdl MyService.DateServiceInf
    (those are 2 lines: echo and java)
    You may get a warning here.
    Here is the generated file from Sun:
    xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:ns2="http://www.mycomp.com/types" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/">
    <types>
    <schema targetNamespace="http://www.mycomp.com/types" xmlns:tns="http://www.mycomp.com/types" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:soap-enc="http://schemas.xmlsoap.org/soap/encoding/" xmlns="http://www.w3.org/2001/XMLSchema">
    <import namespace="http://schemas.xmlsoap.org/soap/encoding/"/>
    <complexType name="DateHolder">
    <sequence>
    <element name="date" type="dateTime"/></sequence></complexType></schema></types>
    <message name="DateServiceInf_getDate">
    <part name="DateHolder_1" type="ns2:DateHolder"/></message>
    <message name="DateServiceInf_getDateResponse"/>
    <message name="DateServiceInf_setDate">
    <part name="Date_1" type="xsd:dateTime"/></message>
    <message name="DateServiceInf_setDateResponse"/>
    <portType name="DateServiceInf">
    <operation name="getDate" parameterOrder="DateHolder_1">
    <input message="tns:DateServiceInf_getDate"/>
    <output message="tns:DateServiceInf_getDateResponse"/></operation>
    <operation name="setDate" parameterOrder="Date_1">
    <input message="tns:DateServiceInf_setDate"/>
    <output message="tns:DateServiceInf_setDateResponse"/></operation></portType>
    <binding name="DateServiceInfBinding" type="tns:DateServiceInf">
    <operation name="getDate">
    <input>
    <soap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" use="encoded" namespace="http://www.mycomp.com/wsdl"/></input>
    <output>
    <soap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" use="encoded" namespace="http://www.mycomp.com/wsdl"/></output>
    <soap:operation soapAction=""/></operation>
    <operation name="setDate">
    <input>
    <soap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" use="encoded" namespace="http://www.mycomp.com/wsdl"/></input>
    <output>
    <soap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" use="encoded" namespace="http://www.mycomp.com/wsdl"/></output>
    <soap:operation soapAction=""/></operation>
    <soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="rpc"/></binding>
    <service name="DateService">
    <port name="DateServiceInfPort" binding="tns:DateServiceInfBinding">
    <soap:address location="REPLACE_WITH_ACTUAL_URL"/></port></service></definitions>

  • Help needed with wsdl compilation problem

    Hi all,
    I am trying to perform a wsdl2java run on a wsdl, but it keeps failing and I can't work out why.
    Can anyone help me spot the problem?
    Here is the problem I get:
    [WARN] Type {http://Input.LeaseBaseGetMntcHistory.remarketing.gf.com}MntcHistory missing!
    [WARN] Type {http://Output.LeaseBaseGetMntcHistory.remarketing.gf.com}MaintenanceHistory missing!And here is the full wsdl
    <?xml version="1.0" encoding="UTF-8"?>
    <wsdl:definitions xmlns:tns="http://Master.LeaseBaseGetMntcHistory.Remarketing.gf.com" xmlns:ns0="http://Input.LeaseBaseGetMntcHistory.remarketing.gf.com" xmlns:ns1="http://Output.LeaseBaseGetMntcHistory.remarketing.gf.com" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" name="LeaseBaseMntcHistory" targetNamespace="http://Master.LeaseBaseGetMntcHistory.Remarketing.gf.com">
        <wsdl:types>
         <xsd:schema xmlns = "http://Input.LeaseBaseGetMntcHistory.remarketing.gf.com"
               targetNamespace = "http://Input.LeaseBaseGetMntcHistory.remarketing.gf.com"
               xmlns:xsd="http://www.w3.org/2001/XMLSchema"
               elementFormDefault="unqualified"
               attributeFormDefault="unqualified">
              <xsd:element name="FleetID" type="xsd:string"/>
              <xsd:element name="CountryID" type="xsd:string"/>
              <xsd:element name="RegID" type="xsd:string"/>
              <xsd:element name="CompanyID" type="xsd:string"/>
              <xsd:element name="ChassisID" type="xsd:string"/>
              <xsd:element name="FleetDetails">
                   <xsd:complexType>
                        <xsd:sequence>
                             <xsd:element ref="FleetID"/>
                             <xsd:element ref="CountryID"/>
                             <xsd:element ref="RegID" minOccurs="0"/>
                             <xsd:element ref="CompanyID" minOccurs="0"/>
                             <xsd:element ref="ChassisID"/>
                        </xsd:sequence>
                   </xsd:complexType>
              </xsd:element>
              <xsd:element name="MntcHistory">
                   <xsd:complexType>
                        <xsd:sequence>
                             <xsd:element ref="FleetDetails"/>
                        </xsd:sequence>
                   </xsd:complexType>
              </xsd:element>
         </xsd:schema>
         <xsd:schema xmlns = "http://Output.LeaseBaseGetMntcHistory.remarketing.gf.com"
               targetNamespace = "http://Output.LeaseBaseGetMntcHistory.remarketing.gf.com"
               xmlns:xsd="http://www.w3.org/2001/XMLSchema"
               elementFormDefault="qualified"
               attributeFormDefault="unqualified">
              <xsd:element name="Date" type="xsd:string"/>
              <xsd:element name="Mileage" type="xsd:string"/>
              <xsd:element name="StatusCD" type="xsd:string"/>
              <xsd:element name="Operation" type="xsd:string"/>
              <xsd:element name="Details">
                   <xsd:complexType>
                        <xsd:sequence>
                             <xsd:element ref="Detail" maxOccurs="unbounded"/>
                        </xsd:sequence>
                   </xsd:complexType>
              </xsd:element>
              <xsd:element name="FleetID" type="xsd:string"/>
              <xsd:element name="RegID" type="xsd:string"/>
              <xsd:element name="MaintenanceHistory">
                   <xsd:complexType>
                        <xsd:sequence>
                             <xsd:element ref="FleetID"/>
                             <xsd:element ref="RegID"/>
                             <xsd:element ref="LstUpdateDate"/>
                             <xsd:element ref="MntcWorkHistory"/>
                        </xsd:sequence>
                   </xsd:complexType>
              </xsd:element>
              <xsd:element name="LstUpdateDate" type="xsd:string"/>
              <xsd:element name="MntcWorkHistory">
                   <xsd:complexType>
                        <xsd:sequence>
                             <xsd:element ref="MntcWork" maxOccurs="unbounded"/>
                        </xsd:sequence>
                   </xsd:complexType>
              </xsd:element>
              <xsd:element name="MntcWork">
                   <xsd:complexType>
                        <xsd:sequence>
                             <xsd:element ref="Date"/>
                             <xsd:element ref="Mileage"/>
                             <xsd:element ref="StatusCD"/>
                             <xsd:element ref="LineItems"/>
                        </xsd:sequence>
                   </xsd:complexType>
              </xsd:element>
              <xsd:element name="LineItems">
                   <xsd:complexType>
                        <xsd:sequence>
                             <xsd:element ref="LineItem" maxOccurs="unbounded"/>
                        </xsd:sequence>
                   </xsd:complexType>
              </xsd:element>
              <xsd:element name="LineItem">
                   <xsd:complexType>
                        <xsd:sequence>
                             <xsd:element ref="Operation"/>
                             <xsd:element ref="Details"/>
                        </xsd:sequence>
                   </xsd:complexType>
              </xsd:element>
              <xsd:element name="Detail" type="xsd:string"/>
         </xsd:schema>
        </wsdl:types>
        <wsdl:message name="MntcHistory">
            <wsdl:part name="parameters" type="ns0:MntcHistory"/>
        </wsdl:message>
        <wsdl:message name="MaintenanceHistory">
            <wsdl:part name="parameters" type="ns1:MaintenanceHistory"/>
        </wsdl:message>
        <wsdl:portType name="portType">
            <wsdl:operation name="LeaseBaseClientOp">
                <wsdl:input message="tns:MntcHistory"/>
                <wsdl:output message="tns:MaintenanceHistory"/>
            </wsdl:operation>
        </wsdl:portType>
        <wsdl:binding name="intfwsLeaseBaseClientEndpoint0Binding" type="tns:portType">
            <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
            <wsdl:operation name="LeaseBaseClientOp">
                <soap:operation style="rpc" soapAction="/Processes/LeaseBaseClientOp"/>
                <wsdl:input>
                    <soap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://Input.LeaseBaseGetMntcHistory.remarketing.gf.com" parts="parameters"/>
                </wsdl:input>
                <wsdl:output>
                    <soap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://Output.LeaseBaseGetMntcHistory.remarketing.gf.com" parts="parameters"/>
                </wsdl:output>
            </wsdl:operation>
        </wsdl:binding>
        <wsdl:service name="intfLeaseBaseClient-service">
            <wsdl:port name="intfwsLeaseBaseClientEndpoint0" binding="tns:intfwsLeaseBaseClientEndpoint0Binding">
                <soap:address location="http://localhost:8080/Processes/intfwsLeaseBaseClientEndpoint0"/>
            </wsdl:port>
        </wsdl:service>
    </wsdl:definitions>Thanks in advance!

    Hello
    You may try something like the modified code below.
    Noticiable changes :
    #1 - Removed the parentheses. Your original code won't yield alias list but a list of finder objects, which is the reason why Preview opens the image. (The statment 'open finderObject' behaves the same as double clicking it in Finder)
    #2 - Only delete the original jpeg files which are converted to tiff.
    #3 - Build new path for converted image.
    #4 - Save in new path. (When saving image in a format other than its original format, always save the image to a new file and do not attempt to overwrite the source file.)
    cf.
    http://www.macosxautomation.com/applescript/imageevents/08.html
    on run
    tell application "Finder"
    set PicturesFolder to (path to home folder as string) & "Pictures:SenseCam:" as alias
    set Photographs to get entire contents of PicturesFolder as alias list -- #1
    end tell
    set DonePhotos to {} -- #2
    tell application "Image Events"
    launch
    repeat with Photo in Photographs
    set Photo to Photo's contents
    set oldPath to Photo as string
    if oldPath ends with ".jpg" then
    set newPath to oldPath's text 1 thru -5 & ".tif" -- #3
    set ImageRef to open Photo
    save ImageRef as TIFF in newPath -- #4
    close ImageRef
    set end of DonePhotos to Photo -- #2
    end if
    end repeat
    end tell
    tell application "Finder"
    delete DonePhotos -- #2
    end tell
    end run
    Hope this may help,
    H

  • WSDL/XSD problem

    I deployed one pl/sql web services using jdeveloper10g to oc4j. within this webservices, there are two operations which reture two set of xml data.
    For each operation call, the biztalk server need to validate against xsd files that we provide to them.
    Here are the problems:
    1. The xsd was generated from database. but in the soap body, there are two extra tags being added by (see below)
    <env:Body>
    <ns0:getSuppliersCsResponseElement>
    <ns0:pdatasetOut><SUPPLIERS><SUPPLIER><SUPPLIER_ID>6144</SUPPLIER_ID><SUPPLIER_NAME>Botanica</SUPPLIER_NAME>
    <SUPPLIER_LAST_MODIFIED>2006-01-22</SUPPLIER_LAST_MODIFIED><JI_OWNED>1</JI_OWNED><BRANDS_EXCLUSIVE_TO_JI></BRANDS_EXCLUSIVE_TO_JI><LIBRARIES><LIBRARY><LIBRARY_ID>5514</LIBRARY_ID><LIBRARY_NAME>Botanica</LIBRARY_NAME><LIBRARY_TYPE>Rights Managed</LIBRARY_TYPE><LIBRARY_LAST_MODIFIED>2005-09-01</LIBRARY_LAST_MODIFIED><RESTRICTIONS><WEBSITE><WEBSITE_ID>2</WEBSITE_ID><WEBSITE_NAME>PictureQuest</WEBSITE_NAME><COUNTRY_CODES><ISO3>ABW</ISO3><ISO3>AND</ISO3></COUNTRY_CODES></WEBSITE></RESTRICTIONS></LIBRARY></LIBRARIES></SUPPLIER></SUPPLIERS></ns0:pdatasetOut>
    </ns0:getSuppliersCsResponseElement>
    </env:Body>
    there two <ns0:getSuppliersCsResponseElement> and <ns0:pdatasetOut> are not in my original xsd file. so biztalk returned failure when it validate message body. Shall I change me xsd to add these two or there is anyway doing this?
    2. I have two operations with different xsd files. How to attach correct or both xsd files within the soap message? or can i do something with WSDL file to inclulde two schemalocations?
    3. the soap body can be over 100MB big. How to streaming the message?

    The following is the WSDL file generated by Jdeveloper
    <definitions
    name="tt"
    targetNamespace="http://webdevdb/Tt.wsdl"
    xmlns="http://schemas.xmlsoap.org/wsdl/"
    xmlns:tns="http://webdevdb/Tt.wsdl"
    xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/"
    xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
    >
    <types>
    <schema xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="http://webdevdb/Tt.wsdl"
    elementFormDefault="qualified" xmlns:tns="http://webdevdb/Tt.wsdl" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:soap12-enc="http://www.w3.org/2003/05/soap-encoding">
    <element name="getRfitemsCsElement" type="decimal" nillable="true"/>
    <element name="getRfitemsCsResponseElement" type="tns:TtUser_getRfitemsCs_Out" nillable="true"/>
    <complexType name="TtUser_getRfitemsCs_Out">
    <sequence>
    <element name="pdatasetOut" type="string" nillable="true"/>
    </sequence>
    </complexType>
    <element name="getSuppliersCsElement" type="string" nillable="true"/>
    <element name="getSuppliersCsResponseElement" type="tns:TtUser_getSuppliersCs_Out"
    nillable="true"/>
    <complexType name="TtUser_getSuppliersCs_Out">
    <sequence>
    <element name="pdatasetOut" type="string" nillable="true"/>
    </sequence>
    </complexType>
    </schema>
    </types>
    <message name="Tt_getRfitemsCs">
    <part name="parameters" element="tns:getRfitemsCsElement"/>
    </message>
    <message name="Tt_getRfitemsCsResponse">
    <part name="result" element="tns:getRfitemsCsResponseElement"/>
    </message>
    <message name="Tt_getSuppliersCs">
    <part name="parameters" element="tns:getSuppliersCsElement"/>
    </message>
    <message name="Tt_getSuppliersCsResponse">
    <part name="result" element="tns:getSuppliersCsResponseElement"/>
    </message>
    <portType name="tt">
    <operation name="getRfitemsCs">
    <input message="tns:Tt_getRfitemsCs"/>
    <output message="tns:Tt_getRfitemsCsResponse"/>
    </operation>
    <operation name="getSuppliersCs">
    <input message="tns:Tt_getSuppliersCs"/>
    <output message="tns:Tt_getSuppliersCsResponse"/>
    </operation>
    </portType>
    <binding name="ttSoap12Http" type="tns:tt">
    <soap12:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
    <operation name="getRfitemsCs">
    <soap12:operation soapAction="http://webdevdb/Tt.wsdl/getRfitemsCs" soapActionRequired="false"/>
    <input>
    <soap12:body use="literal"/>
    </input>
    <output>
    <soap12:body use="literal" parts="result"/>
    </output>
    </operation>
    <operation name="getSuppliersCs">
    <soap12:operation soapAction="http://webdevdb/Tt.wsdl/getSuppliersCs" soapActionRequired="false"/>
    <input>
    <soap12:body use="literal"/>
    </input>
    <output>
    <soap12:body use="literal" parts="result"/>
    </output>
    </operation>
    </binding>
    <service name="tt">
    <port name="ttSoap12HttpPort" binding="tns:ttSoap12Http">
    <soap12:address location="http://192.168.10.151:8888/Application2-proj1-context-root/ttSoap12HttpPort"/>
    </port>
    </service>
    </definitions>

  • WSDL validation problem with WS-I

    I created a WSDL with jDeveloper 10.1.3.2 following the Oracle Tutorial
    http://www.oracle.com/technology/obe/obe1013jdev/wstopdown/wstopdown.htm
    At the point where i have to validate the WSDL with the WS-I tester i get an error message:
    Assertion: BP2701
    The wsdl:definitions namespace is not: http://schemas.xmlsoap.org/wsdl/
    All the entrys inside teh WSDL are written from jdeveloper.
    the output WSDL looks like:
    <definitions targetNamespace="urn:CreditRating"
    xmlns="http://schemas.xmlsoap.org/wsdl/"
    xmlns:tns="urn:CreditRating"
    xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
    xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
    xmlns:types="http://CreditRating.xsd">
    <types>
    <schema targetNamespace="http://CreditRating.xsd"
    xmlns="http://www.w3.org/2001/XMLSchema"
    xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/">
    <element name="ssn" type="string"/>
    <element name="rating" type="int"/>
    <element name="error" type="string"/>
    </schema>
    </types>
    <message name="CreditRatingRequestMessage">
    <part name="ssn" element="types:ssn"/>
    </message>
    <message name="CreditRatingResponseMessage">
    <part name="rating" element="types:rating"/>
    </message>
    <message name="CreditRatingFaultMessage">
    <part name="error" element="types:error"/>
    </message>
    <portType name="CreditRating">
    <operation name="processCreditRating">
    <input message="tns:CreditRatingRequestMessage"/>
    <output message="tns:CreditRatingRequestMessage"/>
    <fault message="tns:CreditRatingFaultMessage" name="negativCredit"/>
    </operation>
    </portType>
    <binding name="CreditRatingSoapHttp" type="tns:CreditRating">
    <soap:binding style="document"
    transport="http://schemas.xmlsoap.org/soap/http"/>
    <operation name="processCreditRating">
    <soap:operation soapAction="urn:CreditRating/processCreditRating"/>
    <input>
    <soap:body use="literal" parts="ssn"/>
    </input>
    <output>
    <soap:body use="literal" parts="ssn"/>
    </output>
    <fault name="negativCredit">
    <soap:fault use="literal" name="negativCredit"/>
    </fault>
    </operation>
    </binding>
    <service name="CreditRatingService">
    <port name="CreditRatingServiceSoapHttpPort"
    binding="tns:CreditRatingSoapHttp">
    <soap:address location="tbd"/>
    </port>
    </service>
    </definitions>
    I can not see where the porblem is. Can someone help me please?
    Tanks Bs

    Hi ,
    there is not any problem in code or in function.
    You just need to double click on Excel field where you are having that problem of ####.
    Whenever display size of cell is less then the data size then it's showing as ###. so you just need to double click on it and make it as per data length...
    -Maharshi

  • WSDL Policy Problem

    Hi All
    I'm  facing this issue...
    My Process Integration version is: 7.1 EHP1
    When create a WSDL, this comes with the WS_POLICY by default in true!
    and thats my problem....
    I'll try to explain all my Steps:
    1.- in the ESR I Have created all the necesary (DT, MT, SI, MM, OP)
    2.- in te Directory, i Have created all objects: Receiver, Sender, I.Det, R.Det.
    3.- Right click on Sender Agreement -> Display WSDL
    4.- this windows comes with 2 things: 1 the WSDL URL and 2, the WSDL per se
    if I download the WSDL, I can change manually  the ws_policy from "true" to "standard" or "false", and with this it works fine... but this solutions doesn't works for me... I need to use the WSDL URL (http://XXXXX:50100/dir/wsdl?p=sa/10eee4f1d18632f182bf5eb4b42cfcdb)
    but, if I use, the WSDL URL, the definition inside it comes with ws_policy = TRUE and I can't change it.
    I have followed this link: /people/holger.stumm2/blog/2010/03/19/wsdl-wspolicy--what-is-it-und-how-can-i-get-rid-of-it-in-pi
    wich talks about how to replace the call of WS_POLICY with STANDARD,
    this is my real URL:
    http://XXXXX:8000/sap/bc/srt/wsdl/sdef_ZSI_LABORATORIO_GS02_REQUEST_S/wsdl11/ws_policy/document?sap-client=100
    this is my URL changed.
    http://XXXXX:8000/sap/bc/srt/wsdl/sdef_ZSI_LABORATORIO_GS02_REQUEST_S/wsdl11/STANDARD/document?sap-client=100
    but I see than this is pointing to SAP ECC and not to PI... here I'm confused.
    if this works I could see the messages from Legacy to PI in the SXI_MONITOR???
    basically what I can see with this is: a direct call to the "service interface" wich I have activated in the SPROXY.
    But I think than the Policy status can't be changed in PI...
    when I look in the Service Interface WSDL TAB I can see, than already it has the policy in true, I have set the Security profile to "NO" but the WSDL TAB shows: <wsp:UsingPolicy wsdl:required="true" />
    if someone knows how to fix it I'll apreciate it
    Thanks and Regards

    Hello,
    I know it's an old topic, but we've got the exact same problem here.
    We want to remove the policy tags in the WSDL generated by PI (7.11), or at least set  <wsp:UsingPolicy wsdl:required="false" />
    Our webservice is consumed by another application that stumbles upon these tags. Now, everytime we have to remove these tags manually. Hope someone can provide me with a solution. Thanks in advance.
    Regards,
    Floris

  • Portal Service from wsdl testing problem

    Hi all,I use Developer Studio to generate sap portal wsdl client,when I finished generating,I want to do test.But it throws the Exception like that
    java.lang.IllegalStateException: Not able to initialize Web Service configuration for service TPOStatusService#
    com.sapportals.portal.prt.service.soap.mapping.SpecializedRegistry.initSerializersXML(SpecializedRegistry.java:601)
    com.sapportals.portal.prt.service.soap.mapping.SpecializedRegistry.initXMLBased(SpecializedRegistry.java:477)
    com.sapportals.portal.prt.service.soap.SOAPServiceManager.getSpecializedRegistry(SOAPServiceManager.java:321)
    com.sapportals.portal.prt.service.soap.PRTSOAPCall.invokeMethod(PRTSOAPCall.java:181)
    com.ilog.pct.tpo.proxy.TPOService.getProblemInfo(TPOService.java:168     at com.ilog.pct.tpo.pages.KpiPage$KpiPageDynPage.doProcessAfterInput(KpiPage.java:48)
    I don't know what's the problem.Can anyone help me to solve this problem?
    The followings is my wsdl:
    <?xml version="1.0" encoding="UTF-8"?>
    <wsdl:definitions targetNamespace="http://ws.tpo.ilog.com" xmlns:apachesoap="http://xml.apache.org/xml-soap" xmlns:impl="http://ws.tpo.ilog.com" xmlns:intf="http://ws.tpo.ilog.com" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <!--WSDL created by Apache Axis version: 1.3
    Built on Oct 05, 2005 (05:23:37 EDT)-->
    <wsdl:types>
      <schema elementFormDefault="qualified" targetNamespace="http://ws.tpo.ilog.com" xmlns="http://www.w3.org/2001/XMLSchema">
       <element name="getProblemInfo">
        <complexType>
         <sequence>
          <element name="name" type="xsd:string"/>
         </sequence>
        </complexType>
       </element>
       <element name="getProblemInfoResponse">
        <complexType>
         <sequence>
          <element name="getProblemInfoReturn" type="impl:ProblemInfo"/>
         </sequence>
        </complexType>
       </element>
       <simpleType name="ProcessStatus">
        <restriction base="xsd:string">
         <enumeration value="1"/>
         <enumeration value="2"/>
         <enumeration value="3"/>
        </restriction>
       </simpleType>
       <complexType name="Vehicle">
        <sequence>
         <element name="cost" type="xsd:double"/>
         <element name="count" type="xsd:int"/>
         <element name="fixcost" type="xsd:double"/>
         <element name="name" nillable="true" type="xsd:string"/>
        </sequence>
       </complexType>
       <complexType name="ArrayOfVehicle">
        <sequence>
         <element maxOccurs="unbounded" minOccurs="0" name="item" type="impl:Vehicle"/>
        </sequence>
       </complexType>
       <complexType name="ProblemInfo">
        <sequence>
         <element name="numbervehicles" type="xsd:int"/>
         <element name="numbervisit" type="xsd:int"/>
         <element name="processStatus" nillable="true" type="impl:ProcessStatus"/>
         <element name="shipvisit" type="xsd:int"/>
         <element name="total" type="xsd:double"/>
         <element name="vehicle" nillable="true" type="impl:ArrayOfVehicle"/>
        </sequence>
       </complexType>
       <complexType name="SvcException">
        <sequence>
         <element name="errorMsg" nillable="true" type="xsd:string"/>
        </sequence>
       </complexType>
       <element name="fault" type="impl:SvcException"/>
      </schema>
    </wsdl:types>
       <wsdl:message name="getProblemInfoResponse">
          <wsdl:part element="impl:getProblemInfoResponse" name="parameters"/>
       </wsdl:message>
       <wsdl:message name="getProblemInfoRequest">
          <wsdl:part element="impl:getProblemInfo" name="parameters"/>
       </wsdl:message>
       <wsdl:message name="SvcException">
          <wsdl:part element="impl:fault" name="fault"/>
       </wsdl:message>
       <wsdl:portType name="TPOProcessSvc">
          <wsdl:operation name="getProblemInfo">
             <wsdl:input message="impl:getProblemInfoRequest" name="getProblemInfoRequest"/>
             <wsdl:output message="impl:getProblemInfoResponse" name="getProblemInfoResponse"/>
             <wsdl:fault message="impl:SvcException" name="SvcException"/>
          </wsdl:operation>
       </wsdl:portType>
       <wsdl:binding name="TPOProcessSvcSoapBinding" type="impl:TPOProcessSvc">
          <wsdlsoap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
          <wsdl:operation name="getProblemInfo">
             <wsdlsoap:operation soapAction=""/>
             <wsdl:input name="getProblemInfoRequest">
                <wsdlsoap:body use="literal"/>
             </wsdl:input>
             <wsdl:output name="getProblemInfoResponse">
                <wsdlsoap:body use="literal"/>
             </wsdl:output>
             <wsdl:fault name="SvcException">
                <wsdlsoap:fault name="SvcException" use="literal"/>
             </wsdl:fault>
          </wsdl:operation>
       </wsdl:binding>
       <wsdl:service name="TPOProcessSvcService">
          <wsdl:port binding="impl:TPOProcessSvcSoapBinding" name="TPOProcessSvc">
             <wsdlsoap:address location="http://localhost:8080/tpo-web/services/TPOProcessSvc"/>
          </wsdl:port>
       </wsdl:service>
    </wsdl:definitions>

    Your installation for SAP JCO is not correct. Download the SAP JCO from service.sap.com and install it on your computer as the installation guide says.
       The above error is due to missing file librfc32.dll. If you are using windows operating system. Put the dll files in windows/system32 directory. thank you.
    Read the following thread. this should definitely solve your problem.
    https://forums.sdn.sap.com/profile.jspa?userID=608260
    PS: reward points if this hepls. thank you
    Message was edited by: Prakash  Singh

  • Accessing WSDL gives problem..........

    Hi all,
    I'm using NWDS SP12. I'm trying to create deployable proxy out of one WSDL file, which is residing in the server that needs authentication to access that. So, when I give URL to that particular WSDL when generating proxy, I'm not able to do so. How do I give authentication parameter there???
    Then I had tried downloading that WSDL file to my local file system and tried with that also...but no luck...
    Do anyone have any idea????
    Regards,
    Mausam

    Hi Bhavik,
    Thanks for replying.
    I think that was the problem with SP11.....but in SP12 its working fine. I'm able to consume any other services, means I'm able to create proxy for other services like Google.....
    But problem here is, my WSDL file is on the server which requires authentication to access WSDL. So, when I try to give the URL of WSDL its giving HTTP 401 error(unauthorised access). So, the question is "how do I give those parameters while generating proxy for WSDL?"
    Regards,
    Mausam

  • Webservice from WSDL - Endpoint URL unchanged

    Hi all,
    I'm following the JDeveloper tutorial here....
    http://www.oracle.com/technology/products/jdev/11/cuecards111/j2ee_set_17/ccset17_ALL.html
    ...in this the endpoint URL is left as http://www.example.com - this gets transformed into....
    http://localhost:7101/ServiceFromWsdl-Project1-context-root/RatingServicePort
    ...I believe at the point the webservice is generated from the WSDL.
    I have a couple of questions....
    1. Where does it get the localhost & 7101 from - at the point of generating the webservice how does it know where I want to deploy it ?
    2. When I generate my webservice from WSDL my URL is left unchanged - it deploys ok to my SOAServer (not the JDeveloper integrated one) but not with the endpoint I used in the WSDL - how do I find this endpoint ?
    Thanks
    MarkF

    OK, I managed to find the endpoint by hacking a few bits of information together....I assumed the port number because I knew the HTTP port number for my SOAServer, the context root is displayed in the deployment log, I then tagged on the Port Name from my WSDL .... et voila !
    Still begs the questions....
    1. Is it supposed to overwrite the URL in my original WSDL ?
    2. Is there no easier way of finding out the endpoint for a deployed WS ?
    Thanks
    MarkPF

  • WSDL endpoint protocol for process

    We have a number of processes in LiveCycle being used as web services called from a PDF embedded in workspace.
    The processes are split across three Livecycle ES2 nodes with JBoss 4.2.
    When I consume the WSDL via https in Designer I would expect for the endpoint to point to the cluster name on https too. However, The generated WSDL marks the wsdlsoap:address location with an http prefix rather than https
    This is causing the service call lookups to break ! I know this is the cause as when I run this on the only box which can bypass the load balancer (which is also doing SSL termination), everything works.
    Anyway I can get to this binding via orchestration at all ??

    Hi Garry,
    You can use a custom Data Type named "WebServiceSettingsBean" in a LiveCycle process. This process can be configured to have a dynamic WSDL binding.
    I hope that may helps.
    Nith

  • ColdFusion WSDL Integration Problem

    I am trying to use a thrid-party WSDL system from a CFMX 7.01
    installation on Windows 2003. A request to a simple (i.e. no
    parameters) method returns good data:
    CFML:
    <cfinvoke webservice="
    http://prod3.ogangi.com/contentManagerWS/services/Version?wsdl"
    method="getVersion" returnvariable="results">
    <cfoutput>#results#</cfoutput>
    However, using a more complex method throws an error
    everytime:
    CFML:
    <cfinvoke webservice="
    http://prod3.ogangi.com/contentManagerWS/services/Categories?wsdl"
    method="getCategory" returnvariable="results">
    <cfinvokeargument name="categoryid" value="294"/>
    <cfinvokeargument name="seller" value="jamaica"/>
    </cfinvoke>
    <cfoutput>#results#</cfoutput>
    ERROR MSG (click the link):
    http://kryptos.thefactoryi.com/bmobilepulse/error_result.cfm
    I checked the WSDL against the following validator and
    everything seems to be functioning correctly:
    http://www.mgateway.com/wsdlClient.htm
    NOTE: Using the getCategory method use "294" for categoryid
    and "jamaica" for seller.
    Using DreamWeaver, the WSDL service cannot be added to the
    Components toolbar (when using CF), but can be added when using any
    other document type (JSP, ASP VB, ASP #).
    What am I missing? I'm not an expert w/ WSDL, but after hours
    of trying other examples and tutorials I cannot figure out this
    problem. Any insight or help will be deeply appreciated!
    -jh

    there is a problem with the webservice in the
    CategoriesService.class. that is why it wont add in dreamweaver. it
    tries to validate the wsdl for coldfusion. i have also had mixed
    results with using a wsdl file that has multiple methods with the
    same name, i.e. the three getCategoryList methods in this wsdl
    file. so if you do get it working, you may want to manually edit
    the wsdl to use only one method and access the modified wsdl file
    locally on the cf server.
    hth

  • WSDL Connection Problems - Workbench

    Hi, Im a fairly new user to Livecycle, and I'm running into a problem using the WSDL data connection.
    I already have 2 drop down lists being populated by a database though Adobe Workbench, What I'm trying to do is get the two selections the User selects(two different locations) and output a distance between those two points. It's for a travel expenses form I'm designing. I have a process in Workbench that when I Invoke, works correctly in letting me enter two locations and then displaying the distances between those points form a database, however when i try call the WSDL Soap address from the Form, it doesn't seem to call the process at all. I am aware you cannot call a web service thought the preview PDF button in designer, and Im checking if it works by deploying the application in workbench, then accessing it though the companies database.
    Any help would be appeciated,
    Thanks

    Hi,
    I have not had any problem calling a SOAP webservice from the PDF Preview, I would guess you have some sort of security issue.  If you open the form in Acrobat then go to Edit ... Preferences ... Security (Enhanced) there is a "cross domain log file" checkbox.  If this is not selected then set it and see if anything useful appears in the log file.
    Otherwise try some of the HTTP debuggers like Fiddler.
    Regards
    Bruce

  • SOAP sender endpoint problem

    Hi all,
    I'm now fighting for quite a time with a SOAP sender channel.
    I generated a WSDL in the configuration. I used this wsdl in XMLSPY in order to send a request to XI.
    And I must confess that I'm totally confused with the URLs. Which one do I need to take (we're using XI 3.0):
    http://server:3400/sap/xi/engine?type=entry&version=3.0&Sender.Service=service&Sender.Interface=urnInterface
    or
    http://server:50000/XISOAPAdapter/MessageServlet?channel=party:service:channel
    What is the difference between those URLs?
    And for the Java URL (port 50000): Which channel do I have to announce? The Name of the SOAP sender communication channel?
    Since XI proposes the url with 3400 port I think this one is appropriate. But whenever I use it I receive a RCVR_DETERMINATION.MESSAGE_INCOMPLETE error and the message is indicated in the monitoring as coming from "AnonymousClient". What do I do wrong? I also tried to force the SOAP adapter to use the parameters by checking the option "Use Query String" in the channel config.
    Please help!
    Thanks in advance.

    Hi Frank,
    thank you for your answer.
    I added the default XI parameters.
    Concerning the userID and Password: I am asked to enter login/pwd if I call the service. Is this what you mean?
    Unfortunately this does not affect anything...
    The response I get is the following:
    <SOAP:Envelope xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/">
    <SOAP:Body>
    <SOAP:Fault>
      <faultcode>SOAP:Server</faultcode>
       <faultstring>System Error</faultstring>
        <detail>
    <s:SystemError xmlns:s="http://sap.com/xi/WebService/xi2.0">
         <context/>
         <code><b>RCVR_DETERMINATION.MESSAGE_INCOMPLETE</b></code>
                             <text/>
    </s:SystemError>
    </detail>
    </SOAP:Fault>
    </SOAP:Body>
    </SOAP:Envelope>
    What amases me is that the ns is http://sap.com/xi/WebService/<b>xi2.0</b>. I used the url including the part &version=3.0
    Does this url work for you (I mean including the version)
    Could the error also be related with other configuration errors (wrong receiver agreement) - I do'nt thnik so but sth goes definetively wrong.
    Greets,
    Joachim

  • Usb endpoints problem

    i have read "Using NI-VISA 3.0 to Control Your USB Devic" but i have a question about the endpoint..
    i want to ask how do i know which endpoint i am using when i am tranfering data such as bulk type.
    besides this tutorial, does there any tutorial related to usb raw device contorl?
    THANK YOU~!

    Hi Amuno,
    The bulk type endpoints will be numbered. They will have numbers like
    6000 usually, and you should know those numbers when you are trying to
    connect to that device. Then you just open a connection to your
    endpoint based on that number.
    If this is not clear, please let me know and I will help you further.
    Regards,
    Matt S.
    LabVIEW Integration Engineer with experience in LabVIEW Real-Time, LabVIEW FPGA, DAQ, Machine Vision, as well as C/C++. CLAD, working on CLD and CLA.

  • SIP trunk call to CTI port media endpoint problem

    Hi, I have the following scenario:
    CUCM ---SIP-----CUBE----SIP----ITSP
    CUCM cluster has two servers 10.1.9.5 and 10.1.9.6 (subscriber), we have a CTI application running on 10.1.9.8, we got a bunch of SIP DIDs from ITSP and those SIP DID numbers are mapped to CUCM internal DNs on CUBE through translation, inbound SIP calls to mapped SCCP phones work fine, media stream of internal call leg is established directly between SCCP phone and CUBE as expected. However, when inbound SIP calls to the number which maps to CTI extention, there is no audio, debug on CUBE shows that the media stream of internal call leg is between one of the CUCM servers. I want to understand why CUCM is telling CUBE to use the IP address which is NOT CTI port is registered from (in this case 10.1.9.8)? why would CUCM treat a CTI extention differently from a regular SCCP phone extension. For regular inbound call to SCCP phones codec between CUCM-CUBE and between CUBE-ITSP are both g11ulaw.
    Thanks,

    "debug on CUBE shows that the media stream of internal call leg is  between one of the CUCM servers" ==>
    debug on CUBE shows that the media stream of internal call leg is  between 10.1.9.5 (happens to be MTP) and CUBE

Maybe you are looking for