LRT214 Accessing Web Services with Port Forwarding & Port Translation

Good afternoon to all,
Purchased the LRT214 yesterday afternoon and it was a breeze to configure the internet settings and get back online. But after the initial configuration, I ran into some trouble getting the router to do port translation together with port forwarding.
The port forwarding setup is straighforward and works perfectly, the same cannot be said for the port translation which does not seem to work. I programmed the following,
1) external port 88 forwarded to internal port 80 for 192.169.1.12
2) external port 89 forwarded to internal port 80 for 192.169.1.13
Can someone point me in the correct direction to achieve the above?
Router Model : LRT214
Firmware Revision : 1.0.2.06
Working Mode : Gateway

Port Address Translation => Service Management
Add two Services for the port translations and then add the translations to the list. Let us know if you get any errors.
Please remember to Kudo those that help you.
Linksys
Communities Technical Support

Similar Messages

  • Not able to access web service with axis and tomcat

    Dear all
    i am trying to access web service using axis in tomcat.
    i downloaded axis-bin-1_4.zip, unzipped it and installed it properly in tomcat.
    i had tested axis, its working fine.
    i had created a simple java class(a sample class from book) and deployed it in axis. i also created a client(a java consol class) for accessing that web service. but its giving error. i have no idea why this is comming.
    plz point me in right direction.
    thanks in advance
    The error is:
    Exception in thread "main" AxisFault
    faultCode: {http://xml.apache.org/axis/}HTTP
    faultSubcode:
    faultString: (404)/axis/ArithmeticProcessor.jws
    faultActor:
    faultNode:
    faultDetail:
            {}:return code:  404
    <html><head><title>Apache Tomcat/6.0.14 - Error report</tit
    le><style><!--H1 {font-family:Tahoma,Arial,sans-serif;color:white;ba
    ckground-color:#525D76;font-size:22px;} H2 {font-family:Tahoma,Arial,sans-serif;
    color:white;background-color:#525D76;font-size:16px;} H3 {font-family:Tahoma,Ari
    al,sans-serif;color:white;background-color:#525D76;font-size:14px;} BODY {font-f
    amily:Tahoma,Arial,sans-serif;color:black;background-color:white;} B {font-famil
    y:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;} P {font-family:
    Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A {color :
    black;}A.name {color : black;}HR {color : #525D76;}--></style> </hea
    d><body><h1>HTTP Status 404 - /axis/ArithmeticProcessor.jws</h
    1><HR size="1" noshade="noshade"><p><b>
    type</b> Status report</p><p><b>message</b> <u&
    gt;/axis/ArithmeticProcessor.jws</u></p><p><b>descriptio
    n</b> <u>The requested resource (/axis/ArithmeticProcessor.jws) is n
    ot available.</u></p><HR size="1" noshade="noshade
    "><h3>Apache Tomcat/6.0.14</h3></body></html>
            {http://xml.apache.org/axis/}HttpErrorCode:404
    (404)/axis/ArithmeticProcessor.jws
            at org.apache.axis.transport.http.HTTPSender.readFromSocket(HTTPSender.j
    ava:744)
            at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:144)
            at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrateg
    y.java:32)
            at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
            at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
            at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165)
            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 ArithmeticClient.main(ArithmeticClient.java:50)

    Hi ,
    Please go through this link and check in this way only you created the webservice correctly or not. If not follow and do it definitely will get you the webservice access by iphone or any application.
    www.scribd.com/doc/19255987/Web-Services-in-Abap

  • UTL_DBWS accessing  web service gives 'not contain port' error

    Hello
    I am trying to call a web service from https://wgfd-cafa02.uni.mdx.ac.uk:8443/nyx/services/PlanonSession?wsdl
    In the WSDL xml, i get the targetNamespace (http://PlanonWebServices.ws),
    the service name (PlanonSession),
    the wsdl URL (https://wgfd-cafa02.uni.mdx.ac.uk:8443/nyx/services/PlanonSession?wsdl),
    the portType name (PlanonSessionHttpEndpoint),
    the operation name (login).
    When i call the web service, i get an error about the port :
    -29532 - ORA-29532: Java call terminated by uncaught Java exception: service:
    {http://PlanonWebServices.ws}PlanonSession does not contain port:
    {http://PlanonWebServices.ws}PlanonSessionHttpEndpoint
    The code is :
    CREATE OR REPLACE PROCEDURE planon_Login AS
    planon_username     VARCHAR2(50):= 'XXXXXX'; --- removed for security
    planon_passwd     VARCHAR2(50):= 'XXXXX'; --- removed for security
    service_ sys.utl_dbws.SERVICE;
    call_ sys.utl_dbws.CALL;
    service_qname sys.utl_dbws.QNAME;
    port_qname sys.utl_dbws.QNAME;
    operation_qname sys.utl_dbws.QNAME;
    string_type_qname sys.utl_dbws.QNAME;
    username     sys.utl_dbws.QNAME;
    password      sys.utl_dbws.QNAME;
    --retx               ANYDATA;
    retx_string VARCHAR2(1000);
    l_namespace     VARCHAR2(1000);
    l_wsdl_url VARCHAR2(1000);
    l_input_params      sys.utl_dbws.ANYDATA_LIST;
    outputs      sys.utl_dbws.ANYDATA_LIST;
    output_retx VARCHAR2(1000);
    xml_string sys.xmltype;
    retx sys.xmltype;
    qname_list_     sys.utl_dbws.QNAME_LIST;
    qname_list_string sys.utl_dbws.QNAME_LIST;
    BEGIN
    dbms_output.put_line('Step 1');
    dbms_output.put_line('Step 1 : Set l_wsdl_url');
    l_wsdl_url := 'https://wgfd-cafa02.uni.mdx.ac.uk:8443/nyx/services/PlanonSession?wsdl';
    dbms_output.put_line('Step 1 : Set l_namespace');
    l_namespace := 'http://PlanonWebServices.ws';
    dbms_output.put_line('Step 1 : Set service_');
    service_qname := sys.utl_dbws.to_qname(l_namespace,'PlanonSession');
    service_ := sys.utl_dbws.create_service (URIFACTORY.getURI(l_wsdl_url), service_qname);
    dbms_output.put_line('Step 1 : Set port_qname_');
    port_qname := sys.utl_dbws.to_qname(l_namespace,'PlanonSessionHttpEndpoint');
    dbms_output.put_line('Step 1 : Set operation_qname');
    operation_qname := sys.utl_dbws.to_qname(l_namespace, 'login');
    dbms_output.put_line('Step 1 : Set call_');
    call_ := sys.utl_dbws.create_call(service_,port_qname,operation_qname);
    dbms_output.put_line('Step 2');
    sys.utl_dbws.set_property(call_,'USERNAME', planon_username);
    sys.utl_dbws.set_property(call_,'PASSWORD', planon_passwd);
    sys.utl_dbws.set_property(call_,'SOAPACTION_USE','TRUE');
    sys.utl_dbws.set_property(call_,'SOAPACTION_URI','https://wgfd-cafa02.uni.mdx.ac.uk:8443/nyx/services/PlanonSession');
    sys.utl_dbws.set_property(call_,'ENCODINGSTYLE_URI', 'https://schemas.xmlsoap.org/soap/encoding/');
    sys.utl_dbws.set_property(call_,'OPERATION_STYLE','document');
    dbms_output.put_line('Step 3');
    string_type_qname := sys.utl_dbws.to_qname('https://www.w3.org/2001/XMLSchema', 'string');
    /* first return parameter in the WSDL should not be specified in the parameter list or errors occur
    sys.utl_dbws.add_parameter(call_, 'loginResponse', string_type_qname, 'ParameterMode.OUT');
    sys.utl_dbws.set_return_type(call_,string_type_qname);
    xml_string := xmltype('<PlanonSession xmlns="https://wgfd-cafa02.uni.mdx.ac.uk:8443/nyx/services">'
    || '</PlanonSession>');
    retx := sys.utl_dbws.invoke(call_,xml_string);
    dbms_output.put_line('Step 6');
    dbms_output.put_line('Step 7');
    dbms_output.put_line('Call Web Service:services:PlanonSession: ' || retx.getStringVal());
    dbms_output.put_line('Step 10');
    sys.utl_dbws.release_call(call_);
    sys.utl_dbws.release_service(service_);
    dbms_output.put_line('Step 11');
    EXCEPTION
    when others then
    dbms_output.put_line(SQLCODE || ' - ' || SQLERRM);
    END;
    The WSDL document is :
    ?xml version="1.0" encoding="UTF-8"?>
    <wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:ns1="http://org.apache.axis2/xsd" xmlns:ns="http://PlanonWebServices.ws" xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" targetNamespace="http://PlanonWebServices.ws">
    <wsdl:documentation>PlanonSession</wsdl:documentation>
    <wsdl:types>
    <xs:schema attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://PlanonWebServices.ws">
    <xs:complexType name="Exception">
    <xs:sequence>
    <xs:element minOccurs="0" name="Exception" nillable="true" type="xs:anyType"/>
    </xs:sequence>
    </xs:complexType>
    <xs:element name="logout">
    <xs:complexType>
    <xs:sequence>
    <xs:element minOccurs="0" name="param0" nillable="true" type="xs:string"/>
    </xs:sequence>
    </xs:complexType>
    </xs:element>
    <xs:element name="logoutResponse">
    <xs:complexType>
    <xs:sequence>
    <xs:element minOccurs="0" name="return" type="xs:boolean"/>
    </xs:sequence>
    </xs:complexType>
    </xs:element>
    <xs:element name="setReferenceDate">
    <xs:complexType>
    <xs:sequence>
    <xs:element minOccurs="0" name="param0" nillable="true" type="xs:string"/>
    <xs:element minOccurs="0" name="param1" nillable="true" type="xs:dateTime"/>
    </xs:sequence>
    </xs:complexType>
    </xs:element>
    <xs:element name="setReferenceDateResponse">
    <xs:complexType>
    <xs:sequence>
    <xs:element minOccurs="0" name="return" type="xs:boolean"/>
    </xs:sequence>
    </xs:complexType>
    </xs:element>
    <xs:element name="setSessionDataSection">
    <xs:complexType>
    <xs:sequence>
    <xs:element minOccurs="0" name="param0" nillable="true" type="xs:string"/>
    <xs:element minOccurs="0" name="param1" nillable="true" type="xs:string"/>
    </xs:sequence>
    </xs:complexType>
    </xs:element>
    <xs:element name="setSessionDataSectionResponse">
    <xs:complexType>
    <xs:sequence>
    <xs:element minOccurs="0" name="return" type="xs:boolean"/>
    </xs:sequence>
    </xs:complexType>
    </xs:element>
    <xs:element name="login">
    <xs:complexType>
    <xs:sequence>
    <xs:element minOccurs="0" name="param0" nillable="true" type="xs:string"/>
    <xs:element minOccurs="0" name="param1" nillable="true" type="xs:string"/>
    </xs:sequence>
    </xs:complexType>
    </xs:element>
    <xs:element name="loginResponse">
    <xs:complexType>
    <xs:sequence>
    <xs:element minOccurs="0" name="return" nillable="true" type="xs:string"/>
    </xs:sequence>
    </xs:complexType>
    </xs:element>
    </xs:schema>
    </wsdl:types>
    <wsdl:message name="logoutRequest">
    <wsdl:part name="parameters" element="ns:logout"/>
    </wsdl:message>
    <wsdl:message name="logoutResponse">
    <wsdl:part name="parameters" element="ns:logoutResponse"/>
    </wsdl:message>
    <wsdl:message name="loginRequest">
    <wsdl:part name="parameters" element="ns:login"/>
    </wsdl:message>
    <wsdl:message name="loginResponse">
    <wsdl:part name="parameters" element="ns:loginResponse"/>
    </wsdl:message>
    <wsdl:message name="setSessionDataSectionRequest">
    <wsdl:part name="parameters" element="ns:setSessionDataSection"/>
    </wsdl:message>
    <wsdl:message name="setSessionDataSectionResponse">
    <wsdl:part name="parameters" element="ns:setSessionDataSectionResponse"/>
    </wsdl:message>
    <wsdl:message name="setReferenceDateRequest">
    <wsdl:part name="parameters" element="ns:setReferenceDate"/>
    </wsdl:message>
    <wsdl:message name="setReferenceDateResponse">
    <wsdl:part name="parameters" element="ns:setReferenceDateResponse"/>
    </wsdl:message>
    <wsdl:portType name="PlanonSessionPortType">
    <wsdl:operation name="logout">
    <wsdl:input message="ns:logoutRequest" wsaw:Action="urn:logout"/>
    <wsdl:output message="ns:logoutResponse" wsaw:Action="urn:logoutResponse"/>
    </wsdl:operation>
    <wsdl:operation name="login">
    <wsdl:input message="ns:loginRequest" wsaw:Action="urn:login"/>
    <wsdl:output message="ns:loginResponse" wsaw:Action="urn:loginResponse"/>
    </wsdl:operation>
    <wsdl:operation name="setSessionDataSection">
    <wsdl:input message="ns:setSessionDataSectionRequest" wsaw:Action="urn:setSessionDataSection"/>
    <wsdl:output message="ns:setSessionDataSectionResponse" wsaw:Action="urn:setSessionDataSectionResponse"/>
    </wsdl:operation>
    <wsdl:operation name="setReferenceDate">
    <wsdl:input message="ns:setReferenceDateRequest" wsaw:Action="urn:setReferenceDate"/>
    <wsdl:output message="ns:setReferenceDateResponse" wsaw:Action="urn:setReferenceDateResponse"/>
    </wsdl:operation>
    </wsdl:portType>
    <wsdl:binding name="PlanonSessionSoap11Binding" type="ns:PlanonSessionPortType">
    <soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document"/>
    <wsdl:operation name="logout">
    <soap:operation soapAction="urn:logout" style="document"/>
    <wsdl:input>
    <soap:body use="literal"/>
    </wsdl:input>
    <wsdl:output>
    <soap:body use="literal"/>
    </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="login">
    <soap:operation soapAction="urn:login" style="document"/>
    <wsdl:input>
    <soap:body use="literal"/>
    </wsdl:input>
    <wsdl:output>
    <soap:body use="literal"/>
    </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="setSessionDataSection">
    <soap:operation soapAction="urn:setSessionDataSection" style="document"/>
    <wsdl:input>
    <soap:body use="literal"/>
    </wsdl:input>
    <wsdl:output>
    <soap:body use="literal"/>
    </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="setReferenceDate">
    <soap:operation soapAction="urn:setReferenceDate" style="document"/>
    <wsdl:input>
    <soap:body use="literal"/>
    </wsdl:input>
    <wsdl:output>
    <soap:body use="literal"/>
    </wsdl:output>
    </wsdl:operation>
    </wsdl:binding>
    <wsdl:binding name="PlanonSessionSoap12Binding" type="ns:PlanonSessionPortType">
    <soap12:binding transport="http://schemas.xmlsoap.org/soap/http" style="document"/>
    <wsdl:operation name="logout">
    <soap12:operation soapAction="urn:logout" style="document"/>
    <wsdl:input>
    <soap12:body use="literal"/>
    </wsdl:input>
    <wsdl:output>
    <soap12:body use="literal"/>
    </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="login">
    <soap12:operation soapAction="urn:login" style="document"/>
    <wsdl:input>
    <soap12:body use="literal"/>
    </wsdl:input>
    <wsdl:output>
    <soap12:body use="literal"/>
    </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="setSessionDataSection">
    <soap12:operation soapAction="urn:setSessionDataSection" style="document"/>
    <wsdl:input>
    <soap12:body use="literal"/>
    </wsdl:input>
    <wsdl:output>
    <soap12:body use="literal"/>
    </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="setReferenceDate">
    <soap12:operation soapAction="urn:setReferenceDate" style="document"/>
    <wsdl:input>
    <soap12:body use="literal"/>
    </wsdl:input>
    <wsdl:output>
    <soap12:body use="literal"/>
    </wsdl:output>
    </wsdl:operation>
    </wsdl:binding>
    <wsdl:binding name="PlanonSessionHttpBinding" type="ns:PlanonSessionPortType">
    <http:binding verb="POST"/>
    <wsdl:operation name="logout">
    <http:operation location="PlanonSession/logout"/>
    <wsdl:input>
    <mime:content type="text/xml" part="logout"/>
    </wsdl:input>
    <wsdl:output>
    <mime:content type="text/xml" part="logout"/>
    </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="login">
    <http:operation location="PlanonSession/login"/>
    <wsdl:input>
    <mime:content type="text/xml" part="login"/>
    </wsdl:input>
    <wsdl:output>
    <mime:content type="text/xml" part="login"/>
    </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="setSessionDataSection">
    <http:operation location="PlanonSession/setSessionDataSection"/>
    <wsdl:input>
    <mime:content type="text/xml" part="setSessionDataSection"/>
    </wsdl:input>
    <wsdl:output>
    <mime:content type="text/xml" part="setSessionDataSection"/>
    </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="setReferenceDate">
    <http:operation location="PlanonSession/setReferenceDate"/>
    <wsdl:input>
    <mime:content type="text/xml" part="setReferenceDate"/>
    </wsdl:input>
    <wsdl:output>
    <mime:content type="text/xml" part="setReferenceDate"/>
    </wsdl:output>
    </wsdl:operation>
    </wsdl:binding>
    <wsdl:service name="PlanonSession">
    <wsdl:port name="PlanonSessionHttpSoap11Endpoint" binding="ns:PlanonSessionSoap11Binding">
    <soap:address location="http://10.13.84.121:8080/nyx/services/PlanonSession.PlanonSessionHttpSoap11Endpoint/"/>
    </wsdl:port>
    <wsdl:port name="PlanonSessionHttpSoap12Endpoint" binding="ns:PlanonSessionSoap12Binding">
    <soap12:address location="http://10.13.84.121:8080/nyx/services/PlanonSession.PlanonSessionHttpSoap12Endpoint/"/>
    </wsdl:port>
    <wsdl:port name="PlanonSessionHttpEndpoint" binding="ns:PlanonSessionHttpBinding">
    <http:address location="http://10.13.84.121:8080/nyx/services/PlanonSession.PlanonSessionHttpEndpoint/"/>
    </wsdl:port>
    </wsdl:service>
    </wsdl:definitions>
    Any help is greatly appreciated.
    Thanks in advance

    I got the same error... did you find a solution?
    tks
    M&aacute;rio Cardia

  • How to Access Web service with ADF Mobile Browser Application

    hi all,
    My Jdeveloper version is 11g 2 release(Version 11.1.2.2.0). I need to know If I create a web application and put it on a server as a web service., Then I create a Mobile browser application and need to access that web service.
    If it is possible, how should I do? version are same in both application.
    hopping any clue..
    Thxs.

    You can go thru the below links :
    ADF Mobile HowTos: Consuming SOAP web service in ADF Mobile using WS DC
    Oracle JDeveloper 11g Release 2 Tutorials - Building Mobile Applications with Oracle ADF Mobile

  • How to access web services with Javascript

    I want to create a XUL/Javascript form which uses CRM On Demand web services. At this time I cannot login (no sample code is given for javascript), therefore I generate my JSESSIONID separately, try and put it in the URL I call in my code, but the server answers back with the logon.jsp page.
         function test()
    var xmlToSend = "<soapenv:Envelope xmlns:soapenv='http://schemas.xmlsoap.org/soap/envelope/' xmlns:con='urn:crmondemand/ws/contact/' xmlns:con1='urn:/crmondemand/xml/contact'>";
         xmlToSend += "<soapenv:Header/>";
         xmlToSend += "<soapenv:Body>";
         xmlToSend += "<con:ContactWS_ContactQueryPage_Input>";
         xmlToSend += "<con1:ListOfContact>";
         xmlToSend += "<con1:Contact>";
         xmlToSend += "<con1:ContactId></con1:ContactId>";
         xmlToSend += "<con1:AccountId></con1:AccountId>";
         xmlToSend += "<con1:ContactEmail>= '[email protected]'</con1:ContactEmail>";
         xmlToSend += "<con1:ContactFirstName></con1:ContactFirstName>";
         xmlToSend += "<con1:ContactFullName></con1:ContactFullName>";
         xmlToSend += "<con1:ContactLastName></con1:ContactLastName>";
         xmlToSend += "<con1:AccountName></con1:AccountName>";
         xmlToSend += "</con1:Contact>";
         xmlToSend += "</con1:ListOfContact>";
         xmlToSend += "</con:ContactWS_ContactQueryPage_Input";
         xmlToSend += "</soapenv:Body>";
         xmlToSend += "</soapenv:Envelope>";
    var xmlhttp;
         xmlhttp = new XMLHttpRequest();
         xmlhttp.overrideMimeType('text/xml');
         xmlhttp.onreadystatechange=DisplayContact;
         xmlhttp.open("POST", "https://secure-ausomxdsa.crmondemand.com/", false);
         xmlhttp.setRequestHeader('Man', 'POST /Services/Integration;JSESSIONID=blablabla HTTP/1.1');
         xmlhttp.setRequestHeader('Content-Type', 'text/xml');
         xmlhttp.setRequestHeader('Content-Length', xmlToSend.length);
         xmlhttp.setRequestHeader('SOAPAction', 'document/urn:crmondemand/ws/contact/:ContactQueryPage');
    function DisplayContact()
              if (xmlhttp.readyState==4) {
                   if (xmlhttp.status==200) {
                        var response = xmlhttp.responseXML;
                        var responsetxt = (new XMLSerializer()).serializeToString(response);
                        document.write(responsetxt);
    The result is: responsetxt always contains the HTML code of logon.jsp.
    Anyone could help with a login code, or with the interrogation.
    Jeremy

    Hi,
    A JS Sample....
    You can use this JS in a Web Applet
    _____________________________________________ START OF FILE _____________________________________________
    <html>
    <head>
    <script type="text/javascript">
    var sso_token='%%%SSO Token%%%' // You can use an OCOD Variable in OCOD Web Applet
    sso_token = sso_token.replace(/\+/g, "%2B");//re-Encondig SSO-Token
    alert (sso_token);
    //////////////////////////////////// getInnerText() ////////////////////////////////////////
    function getInnerText(node) {
    if (typeof node.textContent != 'undefined') {
    return node.textContent;
    else if (typeof node.innerText != 'undefined') {
    return node.innerText;
    else if (typeof node.text != 'undefined') {
    return node.text;
    else {
    switch (node.nodeType) {
    case 3:
    case 4:
    return node.nodeValue;
    break;
    case 1:
    case 11:
    var innerText = '';
    for (var i = 0; i < node.childNodes.length; i++) {
    innerText += getInnerText(node.childNodes);
    return innerText;
    break;
    default:
    return '';
    //////////////////////////////////// sso_login() ////////////////////////////////////////
    //https://server/Services/SSOTokenValidate?odSsoToken = "ssotoken value"
    //https://server/Services/Integration?command=ssologin&odSsoToken="ssotoken value"
    var ajax=null;
    var browser = navigator.appName;
    if(browser == "Microsoft Internet Explorer"){
         ajax = new ActiveXObject("Microsoft.XMLHTTP");
    }else{
         ajax = new XMLHttpRequest();
    function SSO_Login() {     
    //var url = 'https://secure-ausomxdsa.crmondemand.com/Services/SSOTokenValidate?odSsoToken='+sso_token; // Check SSO Token
    var url = 'https://secure-ausomxdsa.crmondemand.com/Services/Integration?command=ssologin&odSsoToken='+sso_token;
    ajax.open("HEAD", url, true);
    ajax.onreadystatechange = getReponse;
    ajax.send(null);
    //////////////////////////////////// Login() ////////////////////////////////////////
    var ajax=null;
    var browser = navigator.appName;
    if(browser == "Microsoft Internet Explorer"){
         ajax = new ActiveXObject("Microsoft.XMLHTTP");
    }else{
         ajax = new XMLHttpRequest();
    function Login() {     
    var url = 'https://secure-ausomxdsa.crmondemand.com/Services/Integration?command=login';
    ajax.open("HEAD", url, true);
    ajax.onreadystatechange = getReponse;
    ajax.setRequestHeader('UserName','GLABADEN-FR13-15/WSUserName');
    ajax.setRequestHeader('Password','OnDemandPassword');
    ajax.send(null);
    //////////////////////////////////// getReponse() ////////////////////////////////////////     
    function getReponse(){
         switch(ajax.readyState){
              case 0:
              case 1:
                   //open com
              break;
              case 2:
                   //send query
              break;
              case 3:
                   //recieving data
              break;
              case 4:
                   //data received
                   //ajax.status contient 200, 404, ...
                   //ajax.statusText contient OK, NOT FOUND, ...
                   var reponseTexte= ajax.responseText;
                   var responseXml= ajax.responseXml;
                   alert(ajax.getResponseHeader("Set-Cookie"));
              break;     
    //////////////////////////////////// Call_WS() ////////////////////////////////////////     
    function Call_WS(){
    var xmlhttp =null;
    var browser = navigator.appName;
    if(browser == "Microsoft Internet Explorer"){
    xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
    }else{
    xmlhttp = new XMLHttpRequest();
    xmlhttp.open("POST", "https://secure-ausomxdsa.crmondemand.com/Services/Integration",true);
    xmlhttp.onreadystatechange=function() {
    if (xmlhttp.readyState==4) {
    rteNode = xmlhttp.responseXML.getElementsByTagName("ListOfContact").item(0);
    alert(rteNode.childNodes.length);
    for(var i=0; i<rteNode.childNodes.length; i++){
    switch( rteNode.childNodes.item(i).tagName ){
    case 'Contact':
    var ContactId = rteNode.childNodes.item(i).childNodes.item(0).tagName;
    var ContactIdValue = rteNode.childNodes.item(i).childNodes.item(0).text;
    var ContactIdGetValue = getInnerText(rteNode.childNodes.item(i).childNodes.item(0));
    alert(ContactId+" : "+ContactIdValue +" / "+ContactIdGetValue);
    break;
    case 'Other':
    break;
    default:
    break;
    xmlhttp.setRequestHeader("SOAPAction", "\"document/urn:crmondemand/ws/contact/10/2004:ContactQueryPage\"")
    xmlhttp.setRequestHeader("MessageType", "CALL")
    xmlhttp.setRequestHeader("Content-Type", "text/xml")
    //xmlhttp.setRequestHeader("Content-Type", "text/xml;charset=UTF-8")
    //xmlhttp.setRequestHeader("Content-Type", "text/xml;charset=ISO-8859-1")
    var miSoap=
    '<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns="urn:crmondemand/ws/contact/10/2004" xmlns:con="urn:/crmondemand/xml/contact"> \n' +
    '<soapenv:Header/> \n' +
    '<soapenv:Body> \n' +
    '<ns:ContactWS_ContactQueryPage_Input> \n' +
    '<ns:PageSize>10</ns:PageSize> \n' +
    '<con:ListOfContact> \n' +
    '<con:Contact> \n' +
    '<con:ContactId></con:ContactId> \n' +
    '</con:Contact> \n' +
    '</con:ListOfContact> \n' +
    '<ns:StartRowNum>0</ns:StartRowNum> \n' +
    '</ns:ContactWS_ContactQueryPage_Input> \n' +
    '</soapenv:Body> \n' +
    '</soapenv:Envelope> \n' ;
    alert(miSoap);
    xmlhttp.send(miSoap);
    //$(document).ready(function () {
    alert("start");
    $("table").each(function() {
    alert("table");
    var $table = $(this);
    var str_id = $table.id;
    alert(str_id);
    </script>
    <h1>Javascript WS</h1>
    <input type="button" onclick="Login()" value="Login">
    <input type="button" onclick="SSO_Login()" value="SSO_Login">
    <input type="button" onclick="Call_WS()" value="Call_WS">
    </body>
    </html>
    _____________________________________________ END OF FILE _____________________________________________
    Best Regards,
    Gerald

  • Accessing Web Services with remote Flex Application

    I am trying to access a WebService on Server A from a Flex application running on Server B. I assume that server A should have a crossdomain.xml file; however, I cannot seem to get it working. Could someone please tell me where the crossdomain.xml file should be placed and what the file should contain so that I do not get the following error from WLS:
    [RPC Fault faultString="Security error accessing url" faultCode="Channel.Security.Error" faultDetail="Unable to load WSDL. If currently online, please verify the URI and/or format of the WSDL (http://10.0.0.124:7001/MeterDataServices?WSDL)"]
         at mx.rpc.wsdl::WSDLLoader/faultHandler()[E:\dev\3.0.x\frameworks\projects\rpc\src\mx\rpc\wsdl\WSDLLoader.as:98]
         at flash.events::EventDispatcher/dispatchEventFunction()
         at flash.events::EventDispatcher/dispatchEvent()
         at mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::dispatchRpcEvent()[E:\dev\3.0.x\frameworks\projects\rpc\src\mx\rpc\AbstractInvoker.as:168]
         at mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::faultHandler()[E:\dev\3.0.x\frameworks\projects\rpc\src\mx\rpc\AbstractInvoker.as:220]
         at mx.rpc::Responder/fault()[E:\dev\3.0.x\frameworks\projects\rpc\src\mx\rpc\Responder.as:49]
         at mx.rpc::AsyncRequest/fault()[E:\dev\3.0.x\frameworks\projects\rpc\src\mx\rpc\AsyncRequest.as:103]
         at DirectHTTPMessageResponder/securityErrorHandler()[E:\dev\3.0.x\frameworks\projects\rpc\src\mx\messaging\channels\DirectHTTPChannel.as:368]
         at flash.events::EventDispatcher/dispatchEventFunction()
         at flash.events::EventDispatcher/dispatchEvent()
         at flash.net::URLLoader/redirectEvent()

    I don't really know my Flash/Flex all that well, but a shot in the dark...I think the crossdomain.xml needs to be at the server root, so you'll need to specify the root context, which can be done in weblogic.xml, for a web application containing crossdomain.xml. To see if it works, use a browser to pull back the file:
    http://serverA/crossdomain.xml

  • Accessing IRM Web Services with Coldfsuion

    We are looking to use the IRM web services with Coldfusion. Coldfusion abstracts Web Services calls through Java calls to the point of just setting up structures and calling the functions.
    My question is about the process for building the correct parameters for the IRM services. I have the JDeveloper examples working but I can't make enough sense of what is goin on through all the calls to build the proper information.
    What I don't understand yet are things like where do I get the server key and at what point do I authenticate? Do I need to do separate calls for these things.
    I've captured a soap transaction for the update user example in JDeveloper and see there is a serverKey but no other authentication. Is this all I need?
    The web services documentation mentions authentication needs to be basic authentication. Other than that there is not more info. Is there any other source of info?

    Hi
    Sorry, things are a bit confused when it comes to Web Services (WS) documentation. At the moment (in 10g), it's mixed up with the older stuff in the Component API Help file. Also, apart from a few snippets and the JDeveloper examples, there is no WS sample code. We hope to address this in 11g.
    The web services required HTTP basic authentication details to be set before the call is invoked. This will be the username and password of the sealing user, so that user will need to be configured to use Standard Auth, rather than NT Auth. How to set this depends on the web service stack used on the client, but with JAX-RPC there are APIs that allow the user name and password to be specified. e.g.
    +// User name for authentication purposes+
    contextServices._setProperty(javax.xml.rpc.Stub.USERNAME_PROPERTY,args[1]);
    +// Password for authentication purposes+
    contextServices._setProperty(javax.xml.rpc.Stub.PASSWORD_PROPERTY,args[2]);
    This snippet is in the Help file under the header "Authentication", or directly via:
    mk:@MSITStore:C:\Program%20Files\SealedMedia\Enterprise%20APIs%20SDK\Components%20SDK\Docs\smcomponents.chm::/ws_documentation_authentication.htm
    As for the Server Key, each IRM Server has a unique UUID value. The easiest way to get this is to call the following web service method on the “ServerServices” web service port.
    LicenseServer_ref reference = serverServices.getLicenseServerReference();
    System.out.println(reference.getServerKey());
    One you’ve obtained this it will never change (for the server you are using) and can be cached or stored for all future web service calls.
    I think you need to have the auth properties set, and the Server Key handy, for most WS methods to work, but I don't think it matters in which order you get them.
    Hope this helps,
    David

  • Accessing external web service with non-constant URL

    Hello, all
    I am looking in the documentation on accessing external web services, but either I am looking in the wrong place, or the documentatoin is lacking info.
    My clients have several web services in the local network (regular services, not DB-based), the have the same interface, but different URL's.
    Versions of the DB are 11, 12, and 16.
    First of all, I do not see in the specs an option for a non-hardcoded URL. The logic says that this has to be possible, but I cannot find it.
    Second, I need to see an example of accessing an XML or JSon based service, I cannot find it in the specs either.
    Can anyone point me to a document with examples?
    Thank you
    Arcady

    The following will call a web service with whatever URL you pass in as the argument "myurl".  I think that is what you are looking for.
    CREATE PROCEDURE cli_test2( myurl LONG VARCHAR )
    RESULT( httpheaders long varchar, httpvalues long varchars
    URL '!myurl'
    To deal with the resulting data in XML, use the OPENXML() function.
    eg. To turn an XML list of employees that looks like this:
    <root>
    <row EmployeeID="102" Surname="Whitney" GivenName="Fran" StartDate="1984-08-28"/>
    </root>
    into a table of results, you would do this (where xmlgetemplist() is the web service call):
    CREATE OR REPLACE PROCEDURE xmlgetemplist() RESULT( httpheader long varchar, httpbody long varchar)
    URL 'http://localhost/demo/xmlEmployeeList'
    TYPE 'HTTP:GET';
    create variable res long varchar;
    -- call the web service
    select httpbody into res from xmlgetemplist() where httpheader = 'Body'
    -- extract the XML elements into a SQL result set
    select * from openXML( res, '/root/row' ) WITH ( EmployeeID INT '@EmployeeID',
           GivenName    CHAR(20) '@GivenName',
           Surname      CHAR(20) '@Surname',
           PhoneNumber  CHAR(10) '@Phone');
    To deal with the resulting data in JSON, use the sp_parse_json() procedure.
    eg.
    To turn a JSON formatted list of employees that looks like this:
    "EmployeeID": 102,
    "Surname": "Whitney",
    "GivenName": "Fran",
    "StartDate": "1984-08-28",
    "TerminationDate": null
    into a table of results, you would do this (where jsongetemplist() is the web service call):
    CREATE OR REPLACE PROCEDURE jsongetemplist() RESULT( httpheader long varchar, httpbody long varchar)
    URL 'http://localhost/demo/jsonEmployeeList'
    TYPE 'HTTP:GET';
    create variable foo long varchar;
    --call the webservice
    select httpbody into foo from jsongetemplist() where httpheader = 'Body';
    --turn the json result into a structured array of data
    -- this step is required because of less structured nature of JSON
    call sp_parse_json( 'output_array', foo);
    --extract the JSON elements from the output array into a SQL result set
    SELECT  output_array[[row_num]].EmployeeID as EmployeeID,
                   output_array[[row_num]].SurName as SurName,
                   output_array[[row_num]].GivenName as GivenName,
                   output_array[[row_num]].StartDate as StartDate,
                   output_array[[row_num]].TerminationDate as EndDate
    FROM sa_rowgenerator(1, CARDINALITY(output_array))
    Hope this helps,
    --Jason

  • Problem with accessing web service

    Hi All,
    I have defined the destination of an online web service.
    When I am trying to find the web service in VC, I am getting the foll. error in log file
    #1.5 #02004C4F4F5000470000000300000AA0FFFFFFFFFFFFFFFF#1229512213921#/System/Server/DevServer#sap.com/VisualComposerServerEar05#com.sap.search.SearchService#Administrator#855####47152110cc2b11ddc7d902004c4f4f50#Thread[Thread-183,5,ApplicationThreadGroup]##0#0#Error#1#com.sap.search.SearchService#Plain###[VC-DevServer][While retrieving systems for Search Provider: BICSServiceProvider]null#
    #1.5 #02004C4F4F5000380000001E00000AA000A277A5BFE73AE3#1229512224722#/System/Server/VCServer#sap.com/VisualComposerServerEar05#com.sap.vc.bcksrv#Administrator#855####1d59fe41cc2b11dda69b02004c4f4f50#HTTP Worker [4]##0#0#Error#1#com.sap.vc.bcksrv#Plain###SystemHandler: search in system: Weather ,function expression : * ,object expression: null  failed. Reason: Could not retrieve metadata#
    #1.5 #02004C4F4F5000380000002200000AA000A277A5BFE73AE3#1229512224769#/System/Server/DevServer#sap.com/VisualComposerServerEar05#com.sap.search.SearchService#Administrator#855####1d59fe41cc2b11dda69b02004c4f4f50#HTTP Worker [4]##0#0#Error#1#com.sap.search.SearchService#Plain###[VC-DevServer][error in search WebServicesProvider/Weather]<Localization failed: ResourceBundle='com.sap.ds.core.exceptions.DevserverMessages', ID='SystemHandler\#search: Could not find the functions metadata', Arguments: []> : Can't find resource for bundle java.util.PropertyResourceBundle, key SystemHandler\#search: Could not find the functions metadata#
    #1.5 #02004C4F4F50001E0000001E00000AA000A277A5BFE73334#1229514581849#/System/Server/VCServer#sap.com/VisualComposerServerEar05#com.sap.vc.bcksrv#Administrator#925####a0595b10cc3011ddb8f202004c4f4f50#HTTP Worker [2]##0#0#Error#1#com.sap.vc.bcksrv#Plain###SystemHandler: search in system: Weather ,function expression : * ,object expression: null  failed. Reason: Could not retrieve metadata#
    #1.5 #02004C4F4F50001E0000002200000AA000A277A5BFE73334#1229514581880#/System/Server/DevServer#sap.com/VisualComposerServerEar05#com.sap.search.SearchService#Administrator#925####a0595b10cc3011ddb8f202004c4f4f50#HTTP Worker [2]##0#0#Error#1#com.sap.search.SearchService#Plain###[VC-DevServer][error in search WebServicesProvider/Weather]<Localization failed: ResourceBundle='com.sap.ds.core.exceptions.DevserverMessages', ID='SystemHandler\#search: Could not find the functions metadata', Arguments: []> : Can't find resource for bundle java.util.PropertyResourceBundle, key SystemHandler\#search: Could not find the functions metadata#
    #1.5 #02004C4F4F50001F0000003800000AA000A277A5BFE72B6C#1229515060702#/System/Server/VCServer#sap.com/VisualComposerServerEar05#com.sap.vc.bcksrv#Administrator#925####a0595b10cc3011ddb8f202004c4f4f50#HTTP Worker [0]##0#0#Error#1#com.sap.vc.bcksrv#Plain###SystemHandler: search in system: Weather ,function expression : * ,object expression: null  failed. Reason: Could not retrieve metadata#
    #1.5 #02004C4F4F50001F0000003C00000AA000A277A5BFE72B6C#1229515060717#/System/Server/DevServer#sap.com/VisualComposerServerEar05#com.sap.search.SearchService#Administrator#925####a0595b10cc3011ddb8f202004c4f4f50#HTTP Worker [0]##0#0#Error#1#com.sap.search.SearchService#Plain###[VC-DevServer][error in search WebServicesProvider/Weather]<Localization failed: ResourceBundle='com.sap.ds.core.exceptions.DevserverMessages', ID='SystemHandler\#search: Could not find the functions metadata', Arguments: []> : Can't find resource for bundle java.util.PropertyResourceBundle, key SystemHandler\#search: Could not find the functions metadata#
    Can someone let me know what is wrong.
    Regards
    Nikhil

    Hi Nikhil,
    Have you created the destination for your online webservice as mentioned in [this|https://www.sdn.sap.com/irj/scn/wiki?path=/display/vc71/webServiceDestination] document?
    <optional>
    Did you test your Web Service in WS Navigator? (you can search for your web Service with the destination name mentioned in step 1 or just paste the WSDL)
    Logout and Login again, then search for the service.
    Let me know if it helps.
    Regards,
    Dharmi

  • Problem accessing web service: unexpected XML tag

    Hi,
    I access a web service with SOAP 1.2 via HTTP 1.1. I used wsimport on the WSDL to generate the stubs (I only use Java 6).
    The web service is a php-Script running on a web server (maybe delegates this in the background, I have no access nor intimate knowledge of the server). This script provides both the WSDL (via GET) and the service (via POST). When I use my generated client I always end up with the same exception:
    Exception in thread "main" com.sun.xml.ws.streaming.XMLStreamReaderException: unexpected XML tag. expected: {http://www.w3.org/2003/05/soap-envelope}Envelope but found: {http://schemas.xmlsoap.org/wsdl/}definitions
         at com.sun.xml.ws.streaming.XMLStreamReaderUtil.verifyTag(XMLStreamReaderUtil.java:203)
         at com.sun.xml.ws.encoding.StreamSOAPCodec.decode(StreamSOAPCodec.java:186)
         at com.sun.xml.ws.encoding.StreamSOAPCodec.decode(StreamSOAPCodec.java:163)
         at com.sun.xml.ws.encoding.StreamSOAPCodec.decode(StreamSOAPCodec.java:135)
         at com.sun.xml.ws.encoding.SOAPBindingCodec.decode(SOAPBindingCodec.java:294)
         at com.sun.xml.ws.transport.http.client.HttpTransportPipe.process(HttpTransportPipe.java:173)
         at com.sun.xml.ws.transport.http.client.HttpTransportPipe.processRequest(HttpTransportPipe.java:88)
         at com.sun.xml.ws.api.pipe.Fiber.__doRun(Fiber.java:595)
         at com.sun.xml.ws.api.pipe.Fiber._doRun(Fiber.java:554)
         at com.sun.xml.ws.api.pipe.Fiber.doRun(Fiber.java:539)
         at com.sun.xml.ws.api.pipe.Fiber.runSync(Fiber.java:436)
         at com.sun.xml.ws.client.Stub.process(Stub.java:248)
         at com.sun.xml.ws.client.sei.SEIStub.doProcess(SEIStub.java:134)
         at com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:244)
         at com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:224)
         at com.sun.xml.ws.client.sei.SEIStub.invoke(SEIStub.java:117)
         at $Proxy45.hello(Unknown Source)
         at client.Client.main(Client.java:37)The exception occurs in the line with the first use of a service method. Somehow the service seems to issue a GET rather than a POST and ends up requesting the WSDL file which generates parsing errors.
    So the code looks something like this:
    Service service = new Service();
    ServicePort port = service.getServicePort();
    port.soSomething(); // <- exceptionThe conversation is SSL encrypted so I can't look at the conversation in Wireshark or similar tools. Maybe there is a problem because the same URL is used for both WSDL and SOAP?

    My apologies. It was a server problem.

  • Web Service with IIS Web server feasible?

    Hi all,
    we have come up with the following architecture and would like to
    know whether we have mis-interpret anything. We would also like
    to know whether this architecture is feasbile or not.
         java client web page browser requesting for the WSDL
         application / of our web service.
              |
              |
         (Internet)
              |
              |
         Firewall 1 (only allow port 80 traffic)
              |
              |
         Microsoft IIS Web Server with iisproxy.dll installed.          
         (hostname : d3dpc1 port number : 80)
              |
              |
         Firewall 2 (only allow port 8100 traffic)
              |
              |
         WebLogic 7.1 Server with a web service deployed.      
         (hostname : d3dpc2 port number : 8100)
    Assumed that we have constructed a certain web service through
    the weblogic workshop and the web service page can be reached behind
    the Firewall 2 via the following URL:
    http://d3dpc2:8100/treasuryWebService/FileOperation/FileUpload.jws
    Next, we'd like to access the same web service outside the Firewall 1.
    On our IS web server, we make use of the IIS plugin and wrote an
    iisproxy.ini as follows:
    WebLogicHost=d3dpc2
    WebLogicPort=8100
    ConnectTimeoutSecs=20
    ConnectRetrySecs=2
    WLForwardPath=/weblogic
    PathTrim=/weblogic
    we insalled the IIS plugin accoring to the document
    "Using Web Server Plug-ins with WebLogic Server", starting
    with page 3-3, running through steps 1-7, 9-10.
    As a result, through the web page browser on the
    client machine outside the Firewall 1, we can
    obtain the WSDL through the following URL
    http://d3dpc1:80/weblogic/treasuryWebService/FileOperation/FileUpload.jws?WSDL
    At the bottom of the attached WSDL, we found that it appears as
    <service name="FileUpload">
    - <port name="FileUploadSoap" binding="s0:FileUploadSoap">
    <soap:address location="http://d3dpc2:8100/treasuryWebService/FileOperation/FileUpload.jws"
    />
    </port>
    - <port name="FileUploadHttpGet" binding="s0:FileUploadHttpGet">
    <http:address location="http://d3dpc2:8100/treasuryWebService/FileOperation/FileUpload.jws"
    />
    </port>
    - <port name="FileUploadHttpPost" binding="s0:FileUploadHttpPost">
    <http:address location="http://d3dpc2:8100/treasuryWebService/FileOperation/FileUpload.jws"
    />
    </port>
    </service>
    It presents to us the address is "http://d3dpc2:8100...."
    which is behind two of our Firewalls, which is, in turn,
    cannot be directly accessed by our client applications.
    As a result, if we run a java client applications to our web service by
    making use of
    http://d3dpc1:80/weblogic/treasuryWebService/FileOperation/FileUpload.jws?WSDL,
    we may obtain the WSDL but the subsequent method calls to our web service
    may be blocked. Are we mis-interpreting anything? Is it feasible
    for us to setup an IIS web service in between our client applications
    to our web service like that?
    We are pleased to provide further information, like our simple
    web service code, if not sufficient. Please offer help!
    Kenneth
    [FileUpload.wsdl]

    Hi Kenneth,
    You need to modify the file weblogic-jws-config.xml in your workshop project
    folder before you genereate the WSDL file.
    The <hostname> and <http-port> entity below will point to your webserver
    address, in this case it would be: <hostname>d3dpc1</hostname> and
    <port>80</port>
    Here is an example of the XML file:
    <config>
    <protocol>http</protocol>
    <hostname>d3dpc1</hostname>
    <http-port>80</http-port>
    <https-port>443</https-port>
    <jws>
    </jws>
    </config>
    Thanks,
    Ninou Sarwono
    "Kenneth Yue" <[email protected]> wrote in message
    news:[email protected]...
    >
    >
    Hi all,
    sorry for the messy format. I don't why the texts
    are present like this. Please kindly press the reply
    link and in the reply window, you will see a
    better format of my text. Sorry for any inconvenience
    caused.
    thanks
    cheers,
    Kenneth
    "Kenneth Yue" <[email protected]> wrote:
    Hi all,
    we have come up with the following architecture and would like to
    know whether we have mis-interpret anything. We would also like
    to know whether this architecture is feasbile or not.
    java client web page browser requesting for the WSDL
    application / of our web service.
    |
    |
    (Internet)
    |
    |
    Firewall 1 (only allow port 80 traffic)
    |
    |
    Microsoft IIS Web Server with iisproxy.dll installed.
    (hostname : d3dpc1 port number : 80)
    |
    |
    Firewall 2 (only allow port 8100 traffic)
    |
    |
    WebLogic 7.1 Server with a web service deployed.
    (hostname : d3dpc2 port number : 8100)
    Assumed that we have constructed a certain web service through
    the weblogic workshop and the web service page can be reached behind
    the Firewall 2 via the following URL:
    http://d3dpc2:8100/treasuryWebService/FileOperation/FileUpload.jws
    Next, we'd like to access the same web service outside the Firewall 1.
    On our IS web server, we make use of the IIS plugin and wrote an
    iisproxy.ini as follows:
    WebLogicHost=d3dpc2
    WebLogicPort=8100
    ConnectTimeoutSecs=20
    ConnectRetrySecs=2
    WLForwardPath=/weblogic
    PathTrim=/weblogic
    we insalled the IIS plugin accoring to the document
    "Using Web Server Plug-ins with WebLogic Server", starting
    with page 3-3, running through steps 1-7, 9-10.
    As a result, through the web page browser on the
    client machine outside the Firewall 1, we can
    obtain the WSDL through the following URL
    http://d3dpc1:80/weblogic/treasuryWebService/FileOperation/FileUpload.jws?W
    SDL
    >>
    At the bottom of the attached WSDL, we found that it appears as
    <service name="FileUpload">
    - <port name="FileUploadSoap" binding="s0:FileUploadSoap">
    <soap:addresslocation="http://d3dpc2:8100/treasuryWebService/FileOperation/FileUpload.jws
    />
    </port>
    - <port name="FileUploadHttpGet" binding="s0:FileUploadHttpGet">
    <http:addresslocation="http://d3dpc2:8100/treasuryWebService/FileOperation/FileUpload.jws
    />
    </port>
    - <port name="FileUploadHttpPost" binding="s0:FileUploadHttpPost">
    <http:addresslocation="http://d3dpc2:8100/treasuryWebService/FileOperation/FileUpload.jws
    />
    </port>
    </service>
    It presents to us the address is "http://d3dpc2:8100...."
    which is behind two of our Firewalls, which is, in turn,
    cannot be directly accessed by our client applications.
    As a result, if we run a java client applications to our web service
    by
    making use of
    http://d3dpc1:80/weblogic/treasuryWebService/FileOperation/FileUpload.jws?W
    SDL,
    we may obtain the WSDL but the subsequent method calls to our web service
    may be blocked. Are we mis-interpreting anything? Is it feasible
    for us to setup an IIS web service in between our client applications
    to our web service like that?
    We are pleased to provide further information, like our simple
    web service code, if not sufficient. Please offer help!
    Kenneth

  • How to create web services with complex objects as parameters

    Hi,
    Not sure if this is the right place, but...
    I'm using Netbeans 5.5 and trying to learn web services.
    Creating a simple web service with simple parameters like strings and integers is nice and easy. I'm now trying to take the next step, and create a web service with a more complex schema as a parameter.
    I've tried two approaches, and hit dead ends on both:
    (1) Define my complex schema as an xsd file, and then create a WSDL file. Creating the schema and saving it in my EFB project works fine; when I try to create a new WSDL file, the IDE gives me a button to import external schemas - which is where the problem is: the Browse simply won't find my newly created schema file.
    (2) Define a Java class (in this case, it's a fairly simple example containing a single ArrayList), and then use the IDE to generate a web service from Java. The IDE does this fine, but I now have no idea how to consume or test the web service - I don't know where to look for the WSDL that has presumably been generated, and I'm also a bit iffy over what answers to give the WSDL creator about port names etc.
    Ideally, I'd prefer to get approach 1 to work - can someone point me in the direction of a sensible tutorial for these things?
    (Happy to carry on using Netbeans 5.5 or to revert to Sun Studio Enterprise, which I was playing with before.)
    All help appreciated, Thanks

    - For NetBeans related questions, nbusers mailing list is more suited. It is often visited by NetBeans experts.
    http://www.netbeans.org/community/lists/top.html
    ...[email protected]
    The NetBeans users mailing list. General discussion of NetBeans use, this is the place to ask for help and to help others.... (There is a 'Subscribe' button next to the above that you can use to subscribe to the list).
    Can you try posting this question on nbusers list?
    - SJSE 8.1 is based on an older version of NB (NB5.0).
    You should definitely continue with NetBeans, since all development is now being done in NetBeans; all the major JSE modules have been moved to opensource at netbeans.org and are all being developed there. There are as yet no future plans to work on further releases for JSE.
    Please check out http://www.netbeans.org for more details.

  • How to use web service with ABAP Web Dynpro

    Hi.
         do you know, how to web service with ABAP Web Dynpro?

    Hi,
    If you have a webservice ready with you then you can generate a proxy from SE80 and you can use that. You just have to create a port and assign to that generated proxy(CLASS) and you are good to go.
    Let me know if you need more information.
    Thank You,
    Gajendra.

  • Error at run time When Access Web Service in web dynpro java

    Hi
    I am used web service created on other machine.I am used wsdl file created in web service.
    is there any setting on J2EE Engine server for accessing web service? after run web dynpro application it gives following error.
    The initial exception that caused the request to fail, was:
       java.io.IOException: Unable to open connection to host "128.9.125.6:8000". Connection timed out:could be due to invalid address.
        at com.tssap.dtr.client.lib.protocol.Connection.openSocket(Connection.java:2117)
        at com.tssap.dtr.client.lib.protocol.Connection.open(Connection.java:1380)
        at com.tssap.dtr.client.lib.protocol.Connection.sendInternal(Connection.java:1534)
        at com.tssap.dtr.client.lib.protocol.Connection.send(Connection.java:1427)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        ... 50 more
    please help me.
    thank in advance

    Hi,
    java.io.IOException: Unable to open connection to host "128.9.125.6:8000". Connection timed out: could be due to invalid address. first check it are you able to connect the WSNavigator. I think you are not able to connect the WSNavigator and are you able to see the WebService in WSNavigator?
    Procedure
    To import a Web service model, proceed as follows:
           1.      Choose the context menu entry -
    Create Model on the -
    Models node of the relevant component.
           2.      In the model wizard, choose Import Web Service Model followed by Next.
           3.      In the second wizard window, enter a model name and specify the package and source code directory. The name of the proxy package is created automatically when you specify the model package.
           4.      Select whether your Web service source is from a local server, is addressed using a URL, or whether it is a UDDI service.
           5.      If you select Local File System or URL, choosing Next will take you to the following window in which you enter a local WSDL URL or select one by choosing Browse.
           6.      If you selected the option UDDI or URL, choosing Next will take you to the following wizard window in which you either enter a WSDL URL of a UDDI service directly or select one by choosing UDDIu2026
    Enter the WSDL description of the Web service in the Wsdl field u2013 for example, http://webservices.matlus.com/scripts/emailwebservice.dll/wsdl/IemailService for an e-mail service.
    You do not need to make any entries in the next step, Proxy Definition / URI Package Mappings. Choose Finish to close the window.
           7.      Switch to the Package Explorer view, select the file lport1.lp in the directory \src\packages\<myPackage>\, and check the port entries.
    Hope this helps!!
    Regards
    Vijay

  • Biztalk 2010 - Consume Web Service with Certificate

    Hi
    I have to consume a java web service with Biztalk that requires authentication via a client certificate. Until now I have not been able to consume any web service where any kind of authentication was needed. Simple web services without authentication are
    no problem. Also using SoapUI works perfectly fine.
    I am generating the XSDs and the port binding with the WCF wizard in VS2010. I've read several comments that it's not possible to consume web services with the WCF-WSHttp adapter when the message format should be SOAP 1.1. Therefore I'm trying with the WCF-BasicHttp
    and WCF-Custom adapters, but I did not suceed in receiving a positive response yet.
    The web service I want to consume uses a client certificate (with a private key) and two root certificates. When I use the BasicHttp adapter I choose either 'Transport' or 'TransportWithMessageCredential' but none of them work. I also have to supply a client
    and a service certificate. I always use the one with the private key for the client but I'm not sure which one I have to use for the service. Is there a possibility that I have to provide both root certificates and if so, how can I achieve this?
    Hope the question makes sense somehow... thanks for any input.
    Error message that I receive currently is that the server needs a client certificate. However I attached it in the send port properties under the tab "Security" => mode "TransportWithMessageCredential".

    Adapter: WCF-Custom
    Binding: customBinding
    Cannot send pictures (yet).
    <configuration>
    <enterpriseLibrary.ConfigurationSource selectedSource="ESB File Configuration Source" />
    <system.serviceModel>
    <client>
    <endpoint address="...." behaviorConfiguration="EndpointBehavior" binding="customBinding" bindingConfiguration="ReceiptBinding" contract="BizTalk" name="WebServicePort" />
    </client>
    <behaviors>
    <endpointBehaviors>
    <behavior name="EndpointBehavior">
    <clientCredentials>
    <clientCertificate findValue="..." x509FindType="FindByThumbprint" />
    <serviceCertificate>
    <defaultCertificate findValue="..." storeLocation="LocalMachine" storeName="AuthRoot" x509FindType="FindByThumbprint" />
    </serviceCertificate>
    </clientCredentials>
    </behavior>
    </endpointBehaviors>
    <serviceBehaviors>
    <behavior name="ServiceBehavior" />
    </serviceBehaviors>
    </behaviors>
    <bindings>
    <customBinding>
    <clear />
    <binding name="ReceiptBinding">
    <textMessageEncoding messageVersion="Soap11" />
    <security authenticationMode="MutualCertificate" />
    <httpsTransport proxyAuthenticationScheme="Basic" requireClientCertificate="true" />
    </binding>
    </customBinding>
    </bindings>
    </system.serviceModel>
    </configuration>

Maybe you are looking for