Invalid characters when consuming web service

Morning all,
I am using Apache Axis 1.3 (yes, slightly old version) to consume a Microsoft SharePoint web service. The problem I am finding is that the returned XML contains an invalid XML character which is causing Axis to throw an exception. I have no control over the SharePoint web service so I am wondering if it is possible to somehow obtain the XML returned from SharePoint so that I can pre-process it, removing all the bad characters, before then letting Axis process as normal. Or perhaps there is a more elegant solution?
This snippet of code shows how I am currently calling the web service :
String endpoint = listSite.endsWith("/") ? listSite + "_vti_bin/Lists.asmx" : listSite + "/_vti_bin/Lists.asmx";
org.apache.axis.client.Service service = new org.apache.axis.client.Service();
org.apache.axis.client.Call call = (org.apache.axis.client.Call) service.createCall();
call.setProperty(Call.SOAPACTION_USE_PROPERTY, new Boolean(true));
call.setProperty(Call.SOAPACTION_URI_PROPERTY, "http://schemas.microsoft.com/sharepoint/soap/GetListItems");
call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
call.setOperationName(new javax.xml.namespace.QName("http://schemas.microsoft.com/sharepoint/soap/", "GetListItems"));
call.setTargetEndpointAddress(new java.net.URL(endpoint));
call.addParameter(new javax.xml.namespace.QName("http://schemas.microsoft.com/sharepoint/soap/", "listName"),
     new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"),
     java.lang.String.class,
     javax.xml.rpc.ParameterMode.IN);
call.addParameter(new javax.xml.namespace.QName("http://schemas.microsoft.com/sharepoint/soap/", "rowLimit"),
     new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"),
     javax.xml.rpc.ParameterMode.IN);
call.setUsername(domain + "\\" + user);
call.setPassword(password);
call.setReturnType(org.apache.axis.Constants.XSD_SCHEMA);
Schema schema = (Schema) call.invoke(new Object[]{ listGUID, "100" });The error occurs after the call to the invoke method :
org.xml.sax.SAXParseException: Character reference "&#11" is an invalid XML characterMany Thanks,
Ben.

You're not going to like this but... get the producer (SharePoint) fixed.
Because if you get invalid XML then yes you'd have to pre-process it, which basically will entail you throwing out Axis and doing it all yourself. Which seems brutal.
Bottom line is that a webservice producing invalid XML is not in fact a webservice.

Similar Messages

  • Problem when consuming web service on WIndows authentication applcation

    Hi,
    I am having a tough time in consuming web services on a
    Windows authentication IIS server.
    In one of my application I have created web services and
    consuming those web services from my another application.
    If I turned off the Windows authentication everything works
    fine, but If I turned on the Windows authentication web services
    stop working.
    Has anyone encountered such error while working with web
    services on Windows authentication server.
    Attach Code
    Could not perform web service invocation "funGetCustomer".
    Here is the fault returned when invoking the web service
    operation:
    AxisFault
    faultCode: {
    http://xml.apache.org/axis/}HTTP
    faultSubcode:
    faultString: (401)Unauthorized
    faultActor:
    faultNode:
    faultDetail:
    {}:return code: 401
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "
    http://www.w3.org/TR/html4/strict.dtd">
    <HTML><HEAD><TITLE>You are not authorized
    to view this page</TITLE>
    <META HTTP-EQUIV="Content-Type" Content="text/html;
    charset=Windows-1252">
    <STYLE type="text/css">
    BODY { font: 8pt/12pt verdana }
    H1 { font: 13pt/15pt verdana }
    H2 { font: 8pt/12pt verdana }
    A:link { color: red }
    A:visited { color: maroon }
    </STYLE>
    </HEAD><BODY><TABLE width=500 border=0
    cellspacing=10><TR><TD>
    <h1>You are not authorized to view this page</h1>
    You do not have permission to view this directory or page
    using the credentials that you supplied because your Web browser is
    sending a WWW-Authenticate header fi...

    You could try switching the HTTP transport provided in the
    Apache Axis embedded in ColdFusion to "CommonsHTTPSender".
    See this blog post:
    http://tjordahl.blogspot.com/2007/03/apache-axis-and-commons-httpclient.html

  • How to reference complex data type when consuming web services in WAS 620?

    In WAS 620, I tried to consume a web service in ABAP. I was successful when the web service returned one or more simple data type. But when the web service is changed to return a complex data type (eg. a structure with 3 elements), the call to the web service did not return anything.
    Do any of you know how to reference the individual element in the structure of an output parameter in a web service? I use the add_parameter method of the CSoapDocument class to identify the output parameters.
    Here is part of the WSDL file:
      <?xml version="1.0" encoding="UTF-8" ?>
    - <definitions xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:s0="urn:sap-com:document:sap:rfc:functions" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" targetNamespace="urn:sap-com:document:sap:rfc:functions">
    - <types>
    - <xsd:schema targetNamespace="urn:sap-com:document:sap:rfc:functions">
    - <xsd:element name="Z_SRM_SOAP_TEST_COMPLEX">
    - <xsd:complexType>
    - <xsd:all>
    - <xsd:element name="INTEXT">
    - <xsd:simpleType>
    - <xsd:restriction base="xsd:string">
      <xsd:maxLength value="50" />
      </xsd:restriction>
      </xsd:simpleType>
      </xsd:element>
      </xsd:all>
      </xsd:complexType>
      </xsd:element>
    - <xsd:element name="Z_SRM_SOAP_TEST_COMPLEX.Response">
    - <xsd:complexType>
    - <xsd:all>
      <xsd:element name="OUTTEXT" type="s0:ZSRM_TEST_STRUCT" />
      </xsd:all>
      </xsd:complexType>
      </xsd:element>
    - <xsd:complexType name="ZSRM_TEST_STRUCT">
    - <xsd:sequence>
    - <xsd:element name="ELEMENT1" minOccurs="0">
    - <xsd:simpleType>
    - <xsd:restriction base="xsd:string">
      <xsd:maxLength value="50" />
      </xsd:restriction>
      </xsd:simpleType>
      </xsd:element>
    - <xsd:element name="ELEMENT2" minOccurs="0">
    - <xsd:simpleType>
    - <xsd:restriction base="xsd:string">
      <xsd:maxLength value="50" />
      </xsd:restriction>
      </xsd:simpleType>
      </xsd:element>
    - <xsd:element name="ELEMENT3" minOccurs="0">
    - <xsd:simpleType>
    - <xsd:restriction base="xsd:string">
      <xsd:maxLength value="50" />
      </xsd:restriction>
      </xsd:simpleType>
      </xsd:element>
      </xsd:sequence>
      </xsd:complexType>
      </xsd:schema>
      </types>

    Hi,
      [email protected] is my id and one more thing u by looking at the wsdl file u can know what al the parameters we have to give to the webservice so try it out also.
    Regards,
    Sirisha.

  • Basic http authentication not working when consuming Web Service in BPEL.

    Hi,
    I am consuming an AXIS Web Service from BPEL 10.1.3. The Web Service uses basic http
    authentication so we need a way to get username and password into the http
    header. In the Oracle BPEL Process Manager Administrator's Guide 10g
    (10.1.3.1.0) section 1.3.4.1 HTTP Basic Authentication (10.1.2.0.2) is stated
    that this can be done using the properties httpUsername and httpPassword. I
    have set the 2 for the partner link in bpel.xml but username and password does
    not get in to the http header. Has anybody got an idea?
    Regards Pete

    I'm having the same sorts of problems with 10.1.3.1.0. I've got a deployed BPEL suitcase that's trying to hit a BASIC AUTH-secured web service running on a WebLogic 8.1 server. I've set up my partner link according to the documentation, and the BPEL console Descriptor tab even shows the parameters correctly:
    partnerLinkBindings      
    client      
         wsdlLocation      awardService.wsdl
    spsAwardSubmitPartnerLink      
         basicHeaders      credentials
         basicUsername      ko1
         basicPassword      xxxxx
         wsdlLocation      IAwardDraftServiceRef1.wsdl
    However, when I funnel the resultant call to the endpoint specified in IAwardDraftServiceRef1.wsdl, none of the fields I would expect show up in the HTTP header:
    POST /pd2WebServices/service/IAwardDraftService HTTP/1.1
    Host: vm-orcl-app-srv:4444
    Connection: Keep-Alive, TE
    TE: trailers, deflate, gzip, compress
    User-Agent: Oracle HTTPClient Version 10h
    SOAPAction: ""
    Accept-Encoding: gzip, x-gzip, compress, x-compress
    Content-type: text/xml; charset=UTF-8
    Content-length: 3800
    <?xml version="1.0" encoding="UTF-8"?>
    <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><env:Body><IAwardDraftSubmitNew xmlns="http://www.caci.com/pd2/pub">
    <IAwardDraft>
    <accessController/>
    <agreementEndDate/>
    Is there some other configuration piece I'm missing?? I've tried the other variation using httpBasicHeaders, with the same results. I even noted that the "Oracle® BPEL Process Manager Administrator's Guide" says that "Starting with Oracle BPEL Process Manager release 10.1.3, all partner link properties are automatically propagated into the HTTP header." I've tried putting "extra" parms in the partner link bindings, but they don't show up either.
    What am I missing??
    Thanks,
    Mike

  • "end-of-body reached" Error when consuming web service from 10GR1

    Hi all,
    Im consuming a number of web services, all of which work fine apart from one which returns the error:
    29266. 00000 - "end-of-body reached"
    *Cause:    The end of the HTTP response body was reached.
    *Action:   If the end of the HTTP response is reached prematurely, check if
    the HTTP response terminates prematurely. Otherwise, end the
    HTTP response.
    I don't understand why this is happening and would really appreciate some help. I have checked the invoke procedure and there is a ' utl_http.end_response(http_resp);' call which online searching suggests can be a cause of the problem (if not used). The procedure which calls the service is:
    function Events_Insert(id varchar2, pwd varchar2) return clob as
    req opf_portal.pkg_call_web_services.request;
    resp opf_portal.pkg_call_web_services.response;
    aEventRecord varchar2(4000);
    begin
    req := opf_portal.pkg_call_web_services.new_request('Events_Insert', 'xmlns="<removed>');
    aEventRecord:='<Options>
    <EventOptionRecord>
    <Comments>None</Comments>
    <Quantity>1</Quantity>
    <OptionID>53</OptionID>
    </EventOptionRecord>
    <EventOptionRecord>
    <Comments>None</Comments>
    <Quantity>1</Quantity>
    <OptionID>53</OptionID>
    </EventOptionRecord>
    </Options>
    <Badges>
    <EventBadgeRecord>
    <Company>Oracle</Company>
    <JobTitle>Consultant</JobTitle>
    <Name>GregCox</Name>
    <EventBadgeRecord>
    </Badges>
    <SpecialRequirements>
    <EventSpecialRequirementRecord>
    <Notes>bob</Notes>
    <Pvkey>110606</Pvkey>
    <RequirementCode>VEG</RequirementCode>
    </EventSpecialRequirementRecord>
    </SpecialRequirements>
    <Pvkey>110606</Pvkey>
    <DelegateType>DELEGATE</DelegateType>
    <EventID>524938</EventID>';
    opf_portal.pkg_call_web_services.add_parameter(req, 'userid', 'xsd:string', id);
    opf_portal.pkg_call_web_services.add_parameter(req, 'password', 'xsd:string', pwd);
    opf_portal.pkg_call_web_services.add_parameter(req, 'aEventRecord', 'xsd:complexType', aEventRecord);
    resp := opf_portal.pkg_call_web_services.invoke(req, '<removed>', '<removed>');
    return resp.doc.getstringval();
    end;

    Incase anybody else encounters this problem, it was my XML that was invalid:
    <EventBadgeRecord>
    <Company>Oracle</Company>
    <JobTitle>Consultant</JobTitle>
    <Name>GregCox</Name>
    <EventBadgeRecord>
    was missing '/' in closing tag

  • Wrong data when consuming web service via ABAP

    Dear all,
    we tried to consume a web service via ABAP and used one of the various existing how-to papers from the internet in order to develop everything.
    The development was not that difficult, but when we now execute our ABAP, we noticed that
    - the first 100 returned rows from the webservice are completely correct
    - then we receive 10-15 completely incorrect rows (empty fields, redundant lines, etc.)
    - the rest of the data (60 records) is correct again
    As we nearly all objects have been generated automatically via SE80, I do not really know where this problem might come from. We double checked the original data and there everything is correct.
    Any ideas?
    Thanks for your feedback,
    Andreas

    Marcelo  Almeida wrote:
    > You can use Logial port for it in LPCONFIG ( Transaction). See this examplo Below:
    >
    > TRY.
    >
    > CREATE OBJECT my_proxy
    > EXPORTING
    > logical_port_name = 'LP01'.
    > CATCH cx_ai_system_fault.
    > ENDTRY.
    >
    > TRY.
    > input-airline_id = p_carrid.
    > input-connection_id = p_connid.
    > input-flight_date = p_fldate.
    >
    > CALL METHOD my_proxy->flight_get_detail
    > EXPORTING
    > input = input
    > IMPORTING
    > output = output.
    > CATCH cx_ai_system_fault.
    > CATCH cx_ai_application_fault.
    > ENTRY.
    >
    > Its necessary create a connection in SM59 (type H) and setting in the call parameters logical port (LPCONFIG).
    Hi,
    thanks for your answer. It´s working!
    Cheers,
    Andy

  • Get error (There is an error in XML document (3, 4)) when consuming web service HelpDesk_QueryList_Service with New-WebServiceProxy

    Dear all,
    I'm using the powershell cmdlt New-WebServiceProxy to query ITSM incidents. I'm able to get the WSDL definition ..
    $uri='http://pitsm/arsys/WSDL/public/pitsmapp/HPD_IncidentInterface_WS'
    $myitsm=New-WebServiceProxy -Uri $uri -Namespace ITSM -Verbose true
    $auth= New-Object ITSM.AuthenticationInfo
    $cred=get-credential
    $auth.username=$cred.username
    $auth.password= [System.Runtime.InteropServices.marshal]::PtrToStringAuto([System.Runtime.InteropServices.marshal]::SecureStringToBSTR($cred.password))
    $auth.authentication="Domain Authentication"
    $myitsm.AuthenticationInfoValue=$auth
    $myitsm.RequestEncoding =  [System.Text.Encoding]::UTF8
    $tid="INC000002237910"
    $criteria="'Incident Number' = ""$tid"""
    When i'm consuming now the web service i get back an error messages:
    $answer=$myitsm.HelpDesk_QueryList_Service($criteria,0,100)
    Exception calling "HelpDesk_QueryList_Service" with "3" argument(s): "There is an error in XML document (3, 4)."
    At line:1 char:1
    + $answer=$myitsm.HelpDesk_QueryList_Service($criteria,0,100)
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
        + FullyQualifiedErrorId : InvalidOperationException
    Has anybody an idea what could be wrong?
    Any idea how to debug the commandlet New-WebServiceProxy?
    Best Regards
    Chris

    Hello Christian,
     i  know this reply is really late ;) I am actually the author of the blog post mentioned by @AnnaWY, the post she mentioned is in regards of a situation 'where everything' is how it should be. Basically, (i think) sometime administrator, or the
    person who implements ITSM webservices makes an error, hence this script will not run. You will end up with that issue mentioned, in order to fix it, either you should contact the person who is responsible for that service, OR rewrite the wsdl for it yourself.
    It might be a bit problematic, but, it is for sure doable, as in my latest blog post about this issue. 
    I am writing it here, because i also saw this page, while googling for explanation, i guess there are more people who are looking for this so here is the link to the explanation:
    http://wp.me/pAXaY-ht
    I hope that helps !
    Regards,
    Greg

  • Error when consuming Web Service in SAP R/3 ECC 6.0

    Hi to everyone.
    I have created an asynchronous Web Service in SAP R3, which I want to use in SAP PI later.
    When I test the Web Service using WS Navigator or XMLSpy the following error occurs:
    SOAP Runtime Protocol: ABAP Runtime exception: 1F09B73915F6B645E10000000A11447B occurred in program CL_SOAP_APPLICATION_PROXY=====CP CP in include CL_SOAP APPLICATIONPROXY=====CM008 at position 110
    SOAP Runtime Protocol: Exception message: An exception with the type CX_SY_REF_IS_INITIAL occurred, but was neither handled locally, nor declared in a RAISING clause
    I tested another synchronous Web Service developed by me in the same system, and the error does not occurs.
    I just searched an OSS Note and does not find anything.
    There are some restrictions in Web Service type developed in SAP R/3?
    Thanks in advance.
    Rafael Rojas.

    Hi.
    I think I must clarify my question.
    The Web Service is not called inside SAP R/3 but externally. For testing pourpose I actually use WS Navigator and XMLSpy.
    The method inside ABAP Server Proxy which is exposed as a Web Server in SAP R/3 system is the following. Note that the Web Service is Asynchronous.
    METHOD zpi_ii_test_ws_4_in~test_ws_4_in.
      DATA: lwa_zpi_test TYPE zpi_test.
      lwa_zpi_test-mandt = input-mt_test-record-client.
      lwa_zpi_test-bukrs = input-mt_test-record-company.
      lwa_zpi_test-belnr = input-mt_test-record-document.
      lwa_zpi_test-gjahr = input-mt_test-record-year.
      INSERT zpi_test FROM lwa_zpi_test.
      COMMIT WORK.
    ENDMETHOD.
    I have created another Web Service in SAP R/3 which is Synchronous, and the error does not occurs. The following is the method inside ABAP Server Proxy which is exposed as a Web Service in SAP R/3 system.
    METHOD zpi_ii_test_ws_3_in~test_ws_3_in.
      DATA: l_bukrs      TYPE bukrs,
            l_belnr      TYPE belnr_d,
            l_gjahr      TYPE gjahr,
            lr_belnr     TYPE RANGE OF belnr_d,
            lwa_zpi_test TYPE zpi_test.
      l_bukrs = input-mt_req-msg+0(4).
      l_gjahr = input-mt_req-msg+4(4).
      SELECT MAX( belnr ) INTO l_belnr
        FROM zpi_test
        WHERE bukrs EQ l_bukrs
          AND belnr IN lr_belnr
          AND gjahr EQ l_gjahr.
      IF l_belnr IS INITIAL.
        l_belnr = '4700000000'.
      ELSE.
        l_belnr = l_belnr + 1.
      ENDIF.
      lwa_zpi_test-mandt = sy-mandt.
      lwa_zpi_test-bukrs = l_bukrs.
      lwa_zpi_test-belnr = l_belnr.
      lwa_zpi_test-gjahr = l_gjahr.
      INSERT zpi_test FROM lwa_zpi_test.
      COMMIT WORK.
      output-mt_resp-msg = l_belnr.
    ENDMETHOD.
    I hope to have clarified my question.
    Rafael Rojas.

  • Weak Xcelsius when consuming web services

    Post Author: cybercowboy
    CA Forum: Xcelsius and Live Office
    The following wsdl is deployed on weblogic 10.0. SoapUI, java, .net, flex ... can all consume it. Only Xcelsius can not even load the wsdl. Anybody who is familiar with the Xcelsius can give me any hints? I am using Xcelsius 2008. Thanks a lot!<?xml version='1.0' encoding='UTF-8'?><s0:definitions name="HelloWorldServiceDefinitions" targetNamespace="http://tempuri.org/" xmlns="" xmlns:s0="http://schemas.xmlsoap.org/wsdl/" xmlns:s1="http://tempuri.org/" xmlns:s2="http://schemas.xmlsoap.org/wsdl/soap/">  <s0:types>    <xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified" targetNamespace="http://tempuri.org/" xmlns:s0="http://schemas.xmlsoap.org/wsdl/" xmlns:s1="http://tempuri.org/" xmlns:s2="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xs="http://www.w3.org/2001/XMLSchema">      <xs:element name="sayHelloWorld">        <xs:complexType>          <xs:sequence/>        </xs:complexType>      </xs:element>      <xs:element name="sayHelloWorldResponse">        <xs:complexType>          <xs:sequence>            <xs:element name="StringOutput" type="xs:string"/>          </xs:sequence>        </xs:complexType>      </xs:element>    </xs:schema>  </s0:types>  <s0:message name="sayHelloWorld">    <s0:part element="s1:sayHelloWorld" name="parameters"/>  </s0:message>  <s0:message name="sayHelloWorldResponse">    <s0:part element="s1:sayHelloWorldResponse" name="parameters"/>  </s0:message>  <s0:portType name="HelloWorldPortType">    <s0:operation name="sayHelloWorld" parameterOrder="parameters">      <s0:input message="s1:sayHelloWorld"/>      <s0:output message="s1:sayHelloWorldResponse"/>    </s0:operation>  </s0:portType>  <s0:binding name="HelloWorldServiceSoapBinding" type="s1:HelloWorldPortType">    <s2:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>    <s0:operation name="sayHelloWorld">      <s2:operation soapAction="" style="document"/>      <s0:input>        <s2:body parts="parameters" use="literal"/>      </s0:input>      <s0:output>        <s2:body parts="parameters" use="literal"/>      </s0:output>    </s0:operation>  </s0:binding>  <s0:service name="HelloWorldService">    <s0:port binding="s1:HelloWorldServiceSoapBinding" name="HelloWorldServicePort">      <s2:address location="http://localhost:7001/HelloWorldServices/HelloWorldImpl"/>    </s0:port>  </s0:service></s0:definitions>

    Post Author: muhammedismail
    CA Forum: Xcelsius and Live Office
    Multiple Schema could not be the issue as Xcelsius can consume the following weblogic WSDL.Can you point the documentation which lists what web service protocols or standards Xcelcius adheres to. What its limitations are. Basically most experts point to using .NET webservices. However none of them does not discuss what exactly in weblogic is not meeting the standard. <?xml version="1.0" encoding="UTF-8"?><definitions  xmlns:tns="java:com.compy.tiby.services"  xmlns:wsr="http://www.openuri.org/2002/10/soap/reliability/"  xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"  xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/"  xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"  xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"  xmlns:soap12enc="http://www.w3.org/2003/05/soap-encoding"  xmlns:conv="http://www.openuri.org/2002/04/wsdl/conversation/"  xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"  xmlns:s="http://www.w3.org/2001/XMLSchema"  xmlns="http://schemas.xmlsoap.org/wsdl/"  targetNamespace="java:com.compy.tiby.services"> <types   xmlns:tns="java:com.compy.tiby.services"   xmlns:wsr="http://www.openuri.org/2002/10/soap/reliability/"   xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"   xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/"   xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"   xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"   xmlns:soap12enc="http://www.w3.org/2003/05/soap-encoding"   xmlns:conv="http://www.openuri.org/2002/04/wsdl/conversation/"   xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"   xmlns:s="http://www.w3.org/2001/XMLSchema"   xmlns="http://schemas.xmlsoap.org/wsdl/">  <xsd:schema    xmlns:xsd="http://www.w3.org/2001/XMLSchema"    xmlns:stns="java:com.compy.tiby.tops.exception"    elementFormDefault="qualified"    attributeFormDefault="qualified"    targetNamespace="java:com.compy.tiby.tops.exception">   <xsd:element     type="stns:topsServiceException"     name="topsServiceException">   </xsd:element>   <xsd:complexType     name="topsServiceException">    <xsd:sequence>     <xsd:element       type="xsd:string"       name="ID"       minOccurs="1"       nillable="true"       maxOccurs="1">     </xsd:element>     <xsd:element       type="xsd:string"       name="causeDetail"       minOccurs="1"       nillable="true"       maxOccurs="1">     </xsd:element>     <xsd:element       type="xsd:string"       name="causeException"       minOccurs="1"       nillable="true"       maxOccurs="1">     </xsd:element>     <xsd:element       type="xsd:string"       name="causeID"       minOccurs="1"       nillable="true"       maxOccurs="1">     </xsd:element>     <xsd:element       type="xsd:string"       name="causeMessage"       minOccurs="1"       nillable="true"       maxOccurs="1">     </xsd:element>     <xsd:element       type="xsd:string"       name="message"       minOccurs="1"       nillable="true"       maxOccurs="1">     </xsd:element>     <xsd:element       type="xsd:string"       name="operation"       minOccurs="1"       nillable="true"       maxOccurs="1">     </xsd:element>    </xsd:sequence>   </xsd:complexType>  </xsd:schema>  <xsd:schema    xmlns:xsd="http://www.w3.org/2001/XMLSchema"    xmlns:stns="java:com.compy.tiby.model"    elementFormDefault="qualified"    attributeFormDefault="qualified"    targetNamespace="java:com.compy.tiby.model">   <xsd:complexType     name="tibyBaseModel">   </xsd:complexType>  </xsd:schema>  <xsd:schema    xmlns:xsd="http://www.w3.org/2001/XMLSchema"    xmlns:stns="java:com.compy.tiby.model.tops"    elementFormDefault="qualified"    attributeFormDefault="qualified"    targetNamespace="java:com.compy.tiby.model.tops">   <xsd:import     namespace="java:com.compy.tiby.model">   </xsd:import>   <xsd:complexType     name="NavigationGroup">    <xsd:complexContent>     <xsd:extension       xmlns:tp="java:com.compy.tiby.model"       base="tp:tibyBaseModel">      <xsd:sequence>       <xsd:element         type="xsd:string"         name="navGroupDesc"         minOccurs="1"         nillable="true"         maxOccurs="1">       </xsd:element>       <xsd:element         type="xsd:int"         name="navGroupId"         minOccurs="1"         maxOccurs="1">       </xsd:element>       <xsd:element         type="xsd:string"         name="navGroupTitle"         minOccurs="1"         nillable="true"         maxOccurs="1">       </xsd:element>       <xsd:element         type="xsd:int"         name="sequence"         minOccurs="1"         maxOccurs="1">       </xsd:element>      </xsd:sequence>     </xsd:extension>    </xsd:complexContent>   </xsd:complexType>   <xsd:complexType     name="NavigationLink">    <xsd:complexContent>     <xsd:extension       xmlns:tp="java:com.compy.tiby.model"       base="tp:tibyBaseModel">      <xsd:sequence>       <xsd:element         type="xsd:string"         name="URL"         minOccurs="1"         nillable="true"         maxOccurs="1">       </xsd:element>       <xsd:element         type="xsd:boolean"         name="intops"         minOccurs="1"         maxOccurs="1">       </xsd:element>       <xsd:element         type="xsd:int"         name="moduleId"         minOccurs="1"         maxOccurs="1">       </xsd:element>       <xsd:element         type="xsd:int"         name="navGroupId"         minOccurs="1"         maxOccurs="1">       </xsd:element>       <xsd:element         type="xsd:string"         name="navLinkDesc"         minOccurs="1"         nillable="true"         maxOccurs="1">       </xsd:element>       <xsd:element         type="xsd:int"         name="navLinkId"         minOccurs="1"         maxOccurs="1">       </xsd:element>       <xsd:element         type="xsd:string"         name="navLinkTitle"         minOccurs="1"         nillable="true"         maxOccurs="1">       </xsd:element>       <xsd:element         type="xsd:boolean"         name="newWindow"         minOccurs="1"         maxOccurs="1">       </xsd:element>       <xsd:element         type="xsd:int"         name="reportId"         minOccurs="1"         maxOccurs="1">       </xsd:element>       <xsd:element         type="xsd:int"         name="sequence"         minOccurs="1"         maxOccurs="1">       </xsd:element>      </xsd:sequence>     </xsd:extension>    </xsd:complexContent>   </xsd:complexType>  </xsd:schema> </types> <message   name="deleteNavigationGroup">  <part    xmlns:partns="http://www.w3.org/2001/XMLSchema"    type="partns:int"    name="intVal">  </part> </message> <message   name="deleteNavigationGroupResponse">  <part    xmlns:partns="http://www.w3.org/2001/XMLSchema"    type="partns:boolean"    name="result">  </part> </message> <message   name="topsServiceException">  <part    xmlns:partns="java:com.compy.tiby.tops.exception"    type="partns:topsServiceException"    name="topsServiceException">  </part> </message> <message   name="deleteNavigationLink">  <part    xmlns:partns="http://www.w3.org/2001/XMLSchema"    type="partns:int"    name="intVal">  </part> </message> <message   name="deleteNavigationLinkResponse">  <part    xmlns:partns="http://www.w3.org/2001/XMLSchema"    type="partns:boolean"    name="result">  </part> </message> <message   name="updateNavigationGroup">  <part    xmlns:partns="java:com.compy.tiby.model.tops"    type="partns:NavigationGroup"    name="navigationGroup">  </part> </message> <message   name="updateNavigationGroupResponse">  <part    xmlns:partns="http://www.w3.org/2001/XMLSchema"    type="partns:boolean"    name="result">  </part> </message> <message   name="updateNavigationLink">  <part    xmlns:partns="java:com.compy.tiby.model.tops"    type="partns:NavigationLink"    name="navigationLink">  </part> </message> <message   name="updateNavigationLinkResponse">  <part    xmlns:partns="http://www.w3.org/2001/XMLSchema"    type="partns:boolean"    name="result">  </part> </message> <message   name="addNavigationGroup">  <part    xmlns:partns="java:com.compy.tiby.model.tops"    type="partns:NavigationGroup"    name="navigationGroup">  </part> </message> <message   name="addNavigationGroupResponse">  <part    xmlns:partns="http://www.w3.org/2001/XMLSchema"    type="partns:int"    name="result">  </part> </message> <message   name="addNavigationLink">  <part    xmlns:partns="java:com.compy.tiby.model.tops"    type="partns:NavigationLink"    name="navigationLink">  </part> </message> <message   name="addNavigationLinkResponse">  <part    xmlns:partns="http://www.w3.org/2001/XMLSchema"    type="partns:int"    name="result">  </part> </message> <message   name="gettopsXML"> </message> <message   name="gettopsXMLResponse">  <part    xmlns:partns="http://www.w3.org/2001/XMLSchema"    type="partns:string"    name="result">  </part> </message> <message   name="getSearchXML">  <part    xmlns:partns="http://www.w3.org/2001/XMLSchema"    type="partns:string"    name="string">  </part> </message> <message   name="getSearchXMLResponse">  <part    xmlns:partns="http://www.w3.org/2001/XMLSchema"    type="partns:string"    name="result">  </part> </message> <portType   name="topsServicesPort">  <operation    name="deleteNavigationGroup">   <input     message="tns:deleteNavigationGroup">   </input>   <output     message="tns:deleteNavigationGroupResponse">   </output>   <fault     name="topsServiceException"     message="tns:topsServiceException">   </fault>  </operation>  <operation    name="deleteNavigationLink">   <input     message="tns:deleteNavigationLink">   </input>   <output     message="tns:deleteNavigationLinkResponse">   </output>   <fault     name="topsServiceException"     message="tns:topsServiceException">   </fault>  </operation>  <operation    name="updateNavigationGroup">   <input     message="tns:updateNavigationGroup">   </input>   <output     message="tns:updateNavigationGroupResponse">   </output>   <fault     name="topsServiceException"     message="tns:topsServiceException">   </fault>  </operation>  <operation    name="updateNavigationLink">   <input     message="tns:updateNavigationLink">   </input>   <output     message="tns:updateNavigationLinkResponse">   </output>   <fault     name="topsServiceException"     message="tns:topsServiceException">   </fault>  </operation>  <operation    name="addNavigationGroup">   <input     message="tns:addNavigationGroup">   </input>   <output     message="tns:addNavigationGroupResponse">   </output>   <fault     name="topsServiceException"     message="tns:topsServiceException">   </fault>  </operation>  <operation    name="addNavigationLink">   <input     message="tns:addNavigationLink">   </input>   <output     message="tns:addNavigationLinkResponse">   </output>   <fault     name="topsServiceException"     message="tns:topsServiceException">   </fault>  </operation>  <operation    name="gettopsXML">   <input     message="tns:gettopsXML">   </input>   <output     message="tns:gettopsXMLResponse">   </output>   <fault     name="topsServiceException"     message="tns:topsServiceException">   </fault>  </operation>  <operation    name="getSearchXML">   <input     message="tns:getSearchXML">   </input>   <output     message="tns:getSearchXMLResponse">   </output>   <fault     name="topsServiceException"     message="tns:topsServiceException">   </fault>  </operation> </portType> <binding   type="tns:topsServicesPort"   name="topsServicesPort">  <soap:binding    style="rpc"    transport="http://schemas.xmlsoap.org/soap/http">  </soap:binding>  <operation    name="deleteNavigationGroup">   <soap:operation     style="rpc"     soapAction="">   </soap:operation>   <input>    <soap:body      namespace="java:com.compy.tiby.services"      encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"      use="encoded">    </soap:body>   </input>   <output>    <soap:body      namespace="java:com.compy.tiby.services"      encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"      use="encoded">    </soap:body>   </output>   <fault     name="topsServiceException">    <soap:fault      namespace="java:com.compy.tiby.services"      name="topsServiceException"      encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"      use="encoded">    </soap:fault>   </fault>  </operation>  <operation    name="deleteNavigationLink">   <soap:operation     style="rpc"     soapAction="">   </soap:operation>   <input>    <soap:body      namespace="java:com.compy.tiby.services"      encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"      use="encoded">    </soap:body>   </input>   <output>    <soap:body      namespace="java:com.compy.tiby.services"      encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"      use="encoded">    </soap:body>   </output>   <fault     name="topsServiceException">    <soap:fault      namespace="java:com.compy.tiby.services"      name="topsServiceException"      encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"      use="encoded">    </soap:fault>   </fault>  </operation>  <operation    name="updateNavigationGroup">   <soap:operation     style="rpc"     soapAction="">   </soap:operation>   <input>    <soap:body      namespace="java:com.compy.tiby.services"      encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"      use="encoded">    </soap:body>   </input>   <output>    <soap:body      namespace="java:com.compy.tiby.services"      encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"      use="encoded">    </soap:body>   </output>   <fault     name="topsServiceException">    <soap:fault      namespace="java:com.compy.tiby.services"      name="topsServiceException"      encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"      use="encoded">    </soap:fault>   </fault>  </operation>  <operation    name="updateNavigationLink">   <soap:operation     style="rpc"     soapAction="">   </soap:operation>   <input>    <soap:body      namespace="java:com.compy.tiby.services"      encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"      use="encoded">    </soap:body>   </input>   <output>    <soap:body      namespace="java:com.compy.tiby.services"      encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"      use="encoded">    </soap:body>   </output>   <fault     name="topsServiceException">    <soap:fault      namespace="java:com.compy.tiby.services"      name="topsServiceException"      encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"      use="encoded">    </soap:fault>   </fault>  </operation>  <operation    name="addNavigationGroup">   <soap:operation     style="rpc"     soapAction="">   </soap:operation>   <input>    <soap:body      namespace="java:com.compy.tiby.services"      encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"      use="encoded">    </soap:body>   </input>   <output>    <soap:body      namespace="java:com.compy.tiby.services"      encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"      use="encoded">    </soap:body>   </output>   <fault     name="topsServiceException">    <soap:fault      namespace="java:com.compy.tiby.services"      name="topsServiceException"      encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"      use="encoded">    </soap:fault>   </fault>  </operation>  <operation    name="addNavigationLink">   <soap:operation     style="rpc"     soapAction="">   </soap:operation>   <input>    <soap:body      namespace="java:com.compy.tiby.services"      encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"      use="encoded">    </soap:body>   </input>   <output>    <soap:body      namespace="java:com.compy.tiby.services"      encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"      use="encoded">    </soap:body>   </output>   <fault     name="topsServiceException">    <soap:fault      namespace="java:com.compy.tiby.services"      name="topsServiceException"      encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"      use="encoded">    </soap:fault>   </fault>  </operation>  <operation    name="gettopsXML">   <soap:operation     style="rpc"     soapAction="">   </soap:operation>   <input>    <soap:body      namespace="java:com.compy.tiby.services"      encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"      use="encoded">    </soap:body>   </input>   <output>    <soap:body      namespace="java:com.compy.tiby.services"      encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"      use="encoded">    </soap:body>   </output>   <fault     name="topsServiceException">    <soap:fault      namespace="java:com.compy.tiby.services"      name="topsServiceException"      encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"      use="encoded">    </soap:fault>   </fault>  </operation>  <operation    name="getSearchXML">   <soap:operation     style="rpc"     soapAction="">   </soap:operation>   <input>    <soap:body      namespace="java:com.compy.tiby.services"      encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"      use="encoded">    </soap:body>   </input>   <output>    <soap:body      namespace="java:com.compy.tiby.services"      encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"      use="encoded">    </soap:body>   </output>   <fault     name="topsServiceException">    <soap:fault      namespace="java:com.compy.tiby.services"      name="topsServiceException"      encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"      use="encoded">    </soap:fault>   </fault>  </operation> </binding> <service   name="topsServices">  <port    name="topsServicesPort"    binding="tns:topsServicesPort">   <soap:address     location="http://biservicesdev.compy.com:80/tibyServices/topsServices">   </soap:address>  </port> </service></definitions>

  • Problem with special characters when calling web services via ISG

    Hi all,
    I have a problem when trying to send or retrieve strings containing some special characters via Integrated SOA Gateway.
    For example, when I call a PL/SQL function via ISG that returns a string containing curling single and double quote characters, these are not represented by valid XML character entity references. So when trying to open the response XML (returned by ISG) in a browser, I get a parser error...
    Has anybody had a similar experience with ISG? How can I resolve that - is it an ISG bug?
    Thanks
    Carolin

    XML Parsing Error: not well-formed
    Location: file:///C:/Users/sanders/Desktop/Text3.xml
    Line Number 4734, Column 54: <DESCRIPTION>Overhead Track Lighting 4?</DESCRIPTION>Do you get the same error if you change the description from "Overhead Track Lighting 4?" to "Overhead Track Lighting 4"?
    Do you have any invalid characters?
    BI Publisher Reports End With Error When There Is An Ampersand Character ( & ) On The Xml Data File [ID 1081175.1]
    Journal Entries Report Doesn'T Yield Output: Java Heap Error [ID 1115663.1]
    Thanks,
    Hussein

  • "Error while parsing SOAP XML payload: no element found" received when invoking Web Service

    Running PB 12.1 Build 7000.  Using Easysoap.  Error ""Error while parsing SOAP XML payload: no element found" received when invoking Web Service".  This error does not appear to be coming from the application code.  Noticed that there were some erroneous characters showing up within the header portion of the XML ("&Quot;").  Not sure where these are coming from.  When I do a find within the PB code for ""&quot;" it gets located within two objects, whereas they both reference a "temp_xml_letter".  Not sure where or what temp_xml_letter resides???   The developer of this is no longer with us and my exposure to WSDL and Web Services is rather limited.  Need to get this resolved...please.
    This is the result of the search.  Notice the extraneous characters ("&quot;"):
    dar1main.pbl(d_as400_mq_xml)
    darlettr.pbl(d_email_xml)
    ---------- Search: Searching Target darwin for 'temp_xml'    (9:52:41 AM)
    ---------- 2 Matches Found On "temp_xml":
    dar1main.pbl(d_as400_mq_xml).d_as400_mq_xml:  export.xml(usetemplate="temp_xml_letter" headgroups="1" includewhitespace="0" metadatatype=0 savemetadata=0  template=(comment="" encoding="UTF-8" name="temp_xml_letter" xml="<?xml version=~"1.0~" encoding=~"UTF-16LE~" standalone=~"yes~"?><EmailServiceTransaction xmlns=~"http://xml.xxnamespace.com/Utility/Email/EmailService" ~" xmlns:imc=~"http://xml.xxnamespace.com/IMC~" xmlns:xsi=~"http://www.w3.org/2001/XMLSchema-instance~" xmlns:root=~"http://xml.xxnamespace.com/RootTypes~" xmlns:email=~"http://xml.xxnamespace.com/Utility/Email~" xsi:schemaLocation=~"http://xml.xxnamespace.com/Utility/Email/EmailService http://dev.xxnamespace.com/Utility/Email/EmailService/V10-TRX-EmailService.xsd~"><EmailServiceInformation><EmailServiceDetail __pbband=~"detail~"><ApplicationIdentifier> applicationidentifier </ApplicationIdentifier><AddresseeInformation><AddresseeDetail><Number> number </Number></AddresseeDetail></AddresseeInformation><EmailMessageInformation><Ema
    darlettr.pbl(d_email_xml).d_email_xml:  export.xml(usetemplate="temp_xml_letter" headgroups="1" includewhitespace="0" metadatatype=0 savemetadata=0  template=(comment="" encoding="UTF-8" name="temp_xml_letter" xml="<?xml version=~"1.0~" encoding=~"UTF-16LE~" standalone=~"yes~"?><EmailServiceTransaction xmlns=~"http://xml.xxnamespace.com/Utility/Email/EmailService" ~" xmlns:imc=~"http://xml.xxnamespace.com/IMC~" xmlns:xsi=~"http://www.w3.org/2001/XMLSchema-instance~" xmlns:root=~"http://xml.xxnamespace.com/RootTypes~" xmlns:email=~"http://xml.xxnamespace.com/Utility/Email~" xsi:schemaLocation=~"http://xml.xxnamespace.com/Utility/Email/EmailService http://dev.xxnamespace.com/Utility/Email/EmailService/V10-TRX-EmailService.xsd~"><EmailServiceInformation><EmailServiceDetail __pbband=~"detail~"><ApplicationIdentifier> applicationidentifier </ApplicationIdentifier><AddresseeInformation><AddresseeDetail><Number> imcnumber </Number></AddresseeDetail></AddresseeInformation><EmailMessageInformation><Ema
    ---------- Done 2 Matches Found On "temp_xml":
    ---------- Finished Searching Target darwin for 'temp_xml'    (9:52:41 AM)

    Maybe "extraneous" is an incorrect term.  Apparantly, based upon the writeup within Wiki, the parser I am using does not interpret the "&quot;"?  How do I find which parser is being utilized and how to control it?
    <<<
    If the document is read by an XML parser that does not or cannot read external entities, then only the five built-in XML character entities (see above) can safely be used, although other entities may be used if they are declared in the internal DTD subset.
    If the document is read by an XML parser that does read external entities, then the five built-in XML character entities can safely be used. The other 248 HTML character entities can be used as long as the XHTML DTD is accessible to the parser at the time the document is read. Other entities may also be used if they are declared in the internal DTD subset.
    >>>

  • Windows authentification while consuming web service from ABAP

    Hi All,
    We are consuming web service from ABAP, we have created client proxy in SE80 and configured logical port in LPCONFIG.
    This one was working fine. Now we have added  windows user authentification to access this service.
    Now when I'm trying to regenerate this proxy in R/3 it is asking for user and password. When I enter these details this one is not working.
    If I access this service direcly from internet explorer and I enter same user and password then I would able to access this service.
    Could you please let me know how to handle this.
    Regards
    Vikram

    The dialog that is produced by HTTP Destination object of the logical port is designed only for use within Classic Dynpro applications.  There is no prompt produced when running in Web Dynpro.  If possible assign a generic user within the logical port definition and this will be used automatically by all users.

  • Consuming Web Services with ABAP - WSDL

    Hi All,
    I Want to consume web service in abap, i found lot of documents,Here i am having data in the internal table i need to pass
    it to wsdl file, The Web Service or Proxy generates a WSDL file. So this WSDL file can be consumed on ABAP Front and Encrypt the Data that is to be sent to the Banks.
    I found the input and output, Where i can find the method generated or we need to create it
    CALL METHOD io_clientproxy->XXXXXXXXXXXX
    please let me have your valuable ideas
    Thanks in advance,
    Arun.

    Hi Miguel,
    I have not heared about SPROXY, Here i found some code,which calls a web service method and where it is from.
    when i double click on my proxy it shows me some method.IF_PROXY_BASIS_INTERNAL~CREATE_FRAMEWORK
    this is the one web service method. and i meed to pass the internal table data to WSDL file.
    *-- create web service proxy class instance
    TRY.
        CREATE OBJECT io_clientproxy
          EXPORTING
            logical_port_name = 'LP4'.
      CATCH cx_ai_system_fault.
    ENDTRY.
    *-- call web service methods
    TRY.
        CALL METHOD io_clientproxy->get_airport_information_by_is
          EXPORTING
            input  = input
          IMPORTING
            output = output.
      CATCH cx_ai_system_fault.
      CATCH cx_ai_application_fault.
    ENDTRY.
    *-- text processing
    output_string = output-get_airport_information_by_is.
    REPLACE ALL OCCURRENCES OF
        '<' IN output_string WITH '<' .
    REPLACE ALL OCCURRENCES OF
    '>' IN output_string WITH '>' .
    REPLACE ALL OCCURRENCES OF
    'xmlns=' IN output_string WITH 'xmlns:xsl=' .
    *-- parsing
    TRY .
        CALL TRANSFORMATION ('Y_AIRPORT_XML2ABAP')
                SOURCE XML output_string
                RESULT     outtab = outtab.
      CATCH cx_xslt_exception INTO xslt_err.
        DATA: s TYPE string.
        s = xslt_err->get_text( ).
        WRITE: ': ', s.
        STOP.
    ENDTRY .
    Regards,
    Arun.

  • Errors when processing web service call

    Hello Experts,
    Based on a requirement, I got a URL based on WSDL, using which I created a Consumer Proxy in SAP.
    I created a Logical Port in SOA Manager with type selected as 'WSDL'.
    When I'm trying to execute the proxy class to call the webservice using the logical port through SE80  it is throwing an error log as stated below.
    1) SOAP:14 Unexpected element -el=definitions ns=http://schemas.xmlsoap.org/wsdl/
    2)Error when processing Web service call
    3)Error when calling SOAP Runtime functions: Unexpected element -el=definitions ns=http://schemas.xmlsoap.org/wsdl/
    Kindly help me out.
    Thanks,
    Vamshi

    Hi,
    Check Anton's reply in this thread: External WS Consumption Issue
    Also refer the below doc which may help you: Consume an External Web Service in a Nutshell with Good Old ABAP
    Calling WebServices from ABAP via HTTPS
    Regards,
    Kiran

  • 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

  • Is there any way to bypass MacBook Pro passwords?

    Hi everyone! I have the newest model MacBook pro and me and my moms side of the family are currently fighting and my stepdad decided to take my MacBook pro from me (which I worked all summer for to buy) and threatened me that if I don't give them the

  • How to decipher number of ASICs on 6500 module.

    Hi, I am hoping someone will be able to clear this up with a deifnite answer since I keep finding contradicting information on line. This is regards to 6500 modules, namely WS-X6148-GE-TX, WS-X6148A-GE-TX and WS-X6748-GE-TX. How do you find how many

  • Services stop at restart, router restart or randomly

    On 10.7.2 Server DHCP, DNS, Netboot, Web and Open Directory services stop (as seen in Server Admin/Server.app) and are unable to be restarted. If I try to restart them I don't get an error message, but the indicator resolutely remains grey (instead o

  • OIM: what should return a task assignment ?

    Hi, I have written a task assignement adapter, which returns the login name of a user, as it appears in OIM "myappr1". I have specified this adapter in the Assignment tab of a process task of an approval task. The approval process and the task I wrot

  • It is possible ssh from a router to another, to its ipv6 link-local address?

    Hi  R1 and R2 are connected by serial links, with IPV6 address global unicast and link-local every link. I can do ping between them. When I do ping to link-local address next router, I need to specify outgoing interface, ping is succesful. However I