Soap 1.2 in NetBeans 6.1

I have a BPEL process (NetBeans 6.1 CAPS) calling a Visual Studio 2008 web service. It's a simple string in, string out scenario.
There are a few posts on the web that claim to consume .net web service from BPEL using the most recent binding components from OpenESB.
I downloaded the most recent version but still have an issue where the CASA project detects 2 ports. It appears the .Net WSDL creates two ports for each operations, standard soap and soap 1.2.
Any idea what version of the SOAP/HTTP binding component supports Soap 1.2 binding in JBI?
Thanks
(Cross post form CAPS forums - it's probably better suited here)

Posting question to "[email protected]" would get quick response
You need to special version, the instalation you have should suffice.
Composite Application build (CASA editor) connects ports automatically only if there is only one consumer and one provider for given WSDL port type. In your scenario there are two, so there is ambiguity. So it would fail with WARNING.
If you navigate to "Service Assembly" node under Composite Application and double click it opens CASA editor. You would notice BPEL partner link is not connected to SOAP endpoint. You need to connect manually, save it and build the project.
If you deploy the SA this time and run the project it should work fine.
If this is not the case please file an issue at https://open-esb.dev.java.net/servlets/ProjectIssues

Similar Messages

  • Problems calling SOAP in JAVA program

    Hello Experts,
    I'm quite new to using SOAP. I just want to ask how to call SOAP in JAVA specifically NetBean. I already created a webservice using the WSDL a created in SAP XI but problem is when I'm trying to invoke the webservice I always get error "401 Unathorized". Is there a way to specify the user name and password when calling the webservice via JAVA code?
    Error Message:
    Exception in thread "main" com.sun.xml.internal.ws.client.ClientTransportException: The server sent HTTP status code 401: Unauthorized
    Sample Code:
    public class Main {
    @param args the command line arguments
        public static void main(String[] args) throws UnsupportedEncodingException {
            ph.co.amkor.atp.ppmodule.synch.ReqCustomerNoDT Req = new ph.co.amkor.atp.ppmodule.synch.ReqCustomerNoDT();
            Req.setCompanyCode(" ");
            Req.setCustomerNumber("00110");
            RespCustDetailsDT cdwsMI = cdwsMI(Req);
            System.out.println("Customer :" + cdwsMI.getCustomerNumber());
            System.out.println("Name     :" + cdwsMI.getName());
            System.out.println("Street   :" + cdwsMI.getStreet());
            System.out.println("Coutnry  :" + cdwsMI.getCountry());
            System.out.println("City     :" + cdwsMI.getCity());
            System.out.println("MSG Type :" + cdwsMI.getMessageType());
            System.out.println("Message  :" + cdwsMI.getReturnMessage());
        private static RespCustDetailsDT cdwsMI(ph.co.amkor.atp.ppmodule.synch.ReqCustomerNoDT reqCustomerNoMT) {
            ph.co.amkor.atp.ppmodule.synch.CDWSMIService service = new ph.co.amkor.atp.ppmodule.synch.CDWSMIService();
            ph.co.amkor.atp.ppmodule.synch.CDWSMI port = service.getCDWSMIPort();
            return port.cdwsMI(reqCustomerNoMT);
    SAP Netweaver Information
    Session Information
    Application:
    Design: Integration Builder
    User:
    aafri
    Logon Language:
    Korean
    Server:
    atpxisd01_XD1_01
    Server Node:
    server0
    Runtime Environment
    Java version:
    1.4.2_12
    Java vendor:
    Sun Microsystems Inc.
    Version
    Service pack:
    12
    Release:
    NW04S_12_REL
    Latest change:
    29423
    Sync time:
    ${sync.time}
    Regards,
    Alfred

    Hello John Wu,
    Points were given.
    The code you gave me worked. Thanks! but now I'm having another error below. It seems that it did not returned anything at all cause cdwsMI object is null.
    Error:
    Exception in thread "main" java.lang.NullPointerException
            at xiwebservice.Main.main(Main.java:31)
    Java Result: 1
    Line were error happened:
    public class Main {
    @param args the command line arguments
        public static void main(String[] args) throws UnsupportedEncodingException {
            ph.co.amkor.atp.ppmodule.synch.ReqCustomerNoDT Req = new ph.co.amkor.atp.ppmodule.synch.ReqCustomerNoDT();
            Req.setCompanyCode(" ");
            Req.setCustomerNumber("00110");
            RespCustDetailsDT cdwsMI = cdwsMI(Req);
            +System.out.println("Customer :" + cdwsMI.getCustomerNumber());+
            System.out.println("Name     :" + cdwsMI.getName());
            System.out.println("Street   :" + cdwsMI.getStreet());
            System.out.println("Coutnry  :" + cdwsMI.getCountry());
            System.out.println("City     :" + cdwsMI.getCity());
            System.out.println("MSG Type :" + cdwsMI.getMessageType());
            System.out.println("Message  :" + cdwsMI.getReturnMessage());
        private static RespCustDetailsDT cdwsMI(ph.co.amkor.atp.ppmodule.synch.ReqCustomerNoDT reqCustomerNoMT) {
            ph.co.amkor.atp.ppmodule.synch.CDWSMIService service = new ph.co.amkor.atp.ppmodule.synch.CDWSMIService();
            ph.co.amkor.atp.ppmodule.synch.CDWSMI port = service.getCDWSMIPort();
            BindingProvider prov = (BindingProvider) port;
            prov.getRequestContext().put(BindingProvider.USERNAME_PROPERTY, "aafri");
            prov.getRequestContext().put(BindingProvider.PASSWORD_PROPERTY, "betanew3");
            return port.cdwsMI(reqCustomerNoMT);
    Regards,
    Alfred

  • SAAJ 1.2 security problem

    I'm trying to run SAAJ1.2 standalone Java application that blows up on send command. The code is almost a mirror of Request.java out of J2EE 1.4 Tutorial. So the failing code line is
    SOAPMessage response = connection.call(message, endpoint);
    And the essence of error message is :
    java.security.PrivilegedActionException: com.sun.xml.messaging.saaj.SOAPExceptionImpl: Message send failed
    I do realize that I dont have a privilege enable to send out a SOAP message. I don't know where and what.
    If you have any idea please help.
    Thanks a lot..

    I tend to get these when the URL of the service is
    incorrect, or the service isn't running. Its a
    rather cryptic clue but thats usually the route
    cause. So check that the URL is correct and that the
    service is running.I have an webApp with SOAP. In the NetBeans Ide 5.5, run perfect... but when it is deployed in the tomcat 5.5, show the next error:
    java.security.PrivilegedActionException: com.sun.xml.messaging.saaj.SOAPExceptionImpl: Message send failed
         at java.security.AccessController.doPrivileged(Native Method)
    However in the Ide Netbeans, Run succefull.
    Sorry my bad english level.

  • Book recommendation?

    I certified in Java 12 years ago, but have unfortunately not had the opportunity to use it much since then. (I’ve been programming with PowerBuilder, PHP, and C++ in the meantime.)
    I’m trying to develop a SOAP web service using Netbeans and Glassfish. I was given a complex (26 pages, including comments) WSDL, and had the web service skeleton created for me by Netbeans, but I’m not exactly sure where to go from here. I got a trial subscription to the Safari Books website and have been trying to get caught up on Java, but can’t find anything that goes into the detail on JAX-WS and JAXB that I need (at least I think those things are what I’m using).
    I did find this, which seems to be exactly what I’m working with (although it’s using different tools), but I’m wondering if there is a good book that covers it in more detail?
    http://technicalmumbojumbo.wordpress.com/2012/04/09/web-services-jaxws-weblogic-oracle-enterprise-pack-for-eclipse-oepe-tutorial/
    Thanks!
    Edited by: 996814 on Mar 28, 2013 9:59 AM

    996814 wrote:
    Thanks. I've actually made a much simpler web service before, using PowerBuilder. But I was in control of how the WSDL turned out on that one. With this one, it's a WSDL created by a standards committee. I work for an auto insurance company and I am required by a new state law to have this implemented within a few months so that the state can use the same client to communicate with different web services from all the auto insurance companies that serve our state. PowerBuilder was unable to generate a matching WSDL from the web service it generated, which is why I'm using Java instead (I've already found that the resulting WSDL matches).That is reallly not relevant or necessary to share to be honest.
    The problem I was having is that all the tutorials I could find told me how to generate the web service, but then just ended with "now implement the generated objects."That's a problem with tutorials as a whole - they all suck. They tend to be written by novices that after reading a chapter on a book think they're experts and have to share their epic knowledge with the world. Then you get something with only half of the truth in it that lacks all the important nuances.
    That's the part I've been stuck on, but I'm gradually getting it figured out. Java is a lot more complicated than it was 12 years ago, and I was hoping to find the magic book that would explain it all for me. :)Its not more complicated. Software engineering as a whole is complicated and stays complicated. The only thing that has changed is that the world wants more more more, so you have to know more more more. But that's your job.

  • Http monitor in Netbeans 5.5 not displaying SOAP msg

    Hi
    Is it possible to view the SOAP message when developing webservices using the http monitor tool which is integrated in Netbeans 5.5.
    I'm only able to see the POST and GET msg, with some very basic information :(

    I don't know exactly, but it works using this webstart application:
    https://tcpmon.dev.java.net/

  • Netbeans creating wsdl file having message with more than one part...

    Hi,
    I am using netbeans 6.0.1. I made an xml schema, then I wanted to make an wsdl that uses that schema.
    I wanted to put in a message more parts(3), and it would not let me. Then, i made the message with just one part, and added the other parts afterwards.
    But now, when I try to make a web service from that wsdl, it says that there is no service in the specified wsdl file.
    And if i let that message with just one part, it will make the Web Service.
    here is the xml schema and the wsdl file:
    XML Schema:
    <?xml version="1.0" encoding="UTF-8"?>
    <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    targetNamespace="http://xml.netbeans.org/schema/Abruf38"
    xmlns:tns="http://xml.netbeans.org/schema/Abruf38"
    elementFormDefault="qualified">
    <xsd:complexType name="FormRequest">
    <xsd:sequence>
    <xsd:element name="newRequest" type="xsd:boolean"/>
    <xsd:element name="requestNumber" type="xsd:int"/>
    <xsd:element name="vehicleClass" type="xsd:string"/>
    <xsd:element name="vehiclesNumber" type="xsd:int"/>
    <xsd:element name="prefferedType" type="xsd:string"/>
    <xsd:element name="kombi" type="xsd:boolean"/>
    <xsd:element name="usageMission" type="xsd:boolean"/>
    <xsd:element name="usageEducation" type="xsd:boolean"/>
    <xsd:element name="usageGeneral" type="xsd:boolean"/>
    <xsd:element name="usageOthers" type="xsd:string"/>
    <xsd:element name="eqVehicle" type="xsd:boolean"/>
    <xsd:element name="eqDangerous" type="xsd:boolean"/>
    <xsd:element name="eqPlaneSpriegel" type="xsd:boolean"/>
    <xsd:element name="eqBegrstll" type="xsd:boolean"/>
    <xsd:element name="eqMSitzBTruck" type="xsd:boolean"/>
    <xsd:element name="eqVerzurrAusst" type="xsd:boolean"/>
    <xsd:element name="eqOthers" type="xsd:string"/>
    <xsd:element name="bringService" type="xsd:boolean"/>
    <xsd:element name="holService" type="xsd:boolean"/>
    <xsd:element name="chauffService" type="xsd:boolean"/>
    <xsd:element name="otherService1" type="xsd:string"/>
    <xsd:element name="otherService1Chk" type="xsd:boolean"/>
    <xsd:element name="otherService2" type="xsd:string"/>
    <xsd:element name="otherService2Chk" type="xsd:boolean"/>
    <xsd:element name="otherService3" type="xsd:string"/>
    <xsd:element name="otherService3Chk" type="xsd:boolean"/>
    <xsd:element name="activity" type="xsd:string"/>
    <xsd:element name="costPayer" type="xsd:string"/>
    <xsd:element name="costCenter" type="xsd:string"/>
    <xsd:element name="vehicleCost" type="xsd:float"/>
    <xsd:element name="chauffServiceCost" type="xsd:float"/>
    <xsd:element name="holBringServiceCost" type="xsd:float"/>
    <xsd:element name="totalCost" type="xsd:float"/>
    <xsd:element name="tripPurpose" type="xsd:string"/>
    <xsd:element name="fixTermin" type="xsd:boolean"/>
    <xsd:element name="justificationFix" type="xsd:string"/>
    <xsd:element name="requestID" type="xsd:string"/>
    <xsd:element name="rentalPeriod" type="tns:RentalPeriod"/>
    <xsd:element name="carPool" type="tns:CarPool"/>
    </xsd:sequence>
    </xsd:complexType>
    <xsd:complexType name="CarPool">
    <xsd:sequence>
    <xsd:element name="poolID" type="xsd:string"/>
    <xsd:element name="poolName" type="xsd:string"/>
    <xsd:element name="orgNumber" type="xsd:string"/>
    <xsd:element name="vehicle" maxOccurs="unbounded" type="tns:Vehicle"/>
    </xsd:sequence>
    </xsd:complexType>
    <xsd:complexType name="RentalPeriod">
    <xsd:sequence>
    <xsd:element name="rentalPeriodID" type="xsd:string"/>
    <xsd:element name="startDate" type="xsd:date"/>
    <xsd:element name="endDate" type="xsd:date"/>
    <xsd:element name="startTime" type="xsd:time"/>
    <xsd:element name="endTime" type="xsd:time"/>
    <xsd:element name="startLocation" type="xsd:string"/>
    <xsd:element name="endLocation" type="xsd:string"/>
    </xsd:sequence>
    </xsd:complexType>
    <xsd:complexType name="Vehicle">
    <xsd:sequence>
    <xsd:element name="vehicleID" type="xsd:string"/>
    <xsd:element name="vehicleClass" type="xsd:string"/>
    <xsd:element name="vehicleRegisterNo" type="xsd:int"/>
    <xsd:element name="vehicleType" type="xsd:string"/>
    <xsd:element name="seatsNumber" type="xsd:int"/>
    <xsd:element name="cost" type="xsd:float"/>
    <xsd:element name="available" type="xsd:boolean"/>
    </xsd:sequence>
    </xsd:complexType>
    <xsd:complexType name="Contact">
    <xsd:sequence>
    <xsd:element name="contactID" type="xsd:string"/>
    <xsd:element name="contactName" type="xsd:string"/>
    <xsd:element name="telNumber" type="xsd:int"/>
    <xsd:element name="faxNumber" type="xsd:int"/>
    <xsd:element name="loNo" type="xsd:string"/>
    </xsd:sequence>
    </xsd:complexType>
    <xsd:complexType name="Person">
    <xsd:sequence>
    <xsd:element name="personID"/>
    <xsd:element name="department" type="xsd:string"/>
    <xsd:element name="serviceNumber" type="xsd:int"/>
    <xsd:element name="contact" type="tns:Contact"/>
    </xsd:sequence>
    </xsd:complexType>
    <xsd:complexType name="Department">
    <xsd:sequence>
    <xsd:element name="departmentID" type="xsd:string"/>
    <xsd:element name="fundsDepartment" type="xsd:string"/>
    <xsd:element name="mvwdst" type="xsd:int"/>
    <xsd:element name="distributionNumber" type="xsd:int"/>
    <xsd:element name="contact" type="tns:Contact"/>
    </xsd:sequence>
    </xsd:complexType>
    <xsd:element name="formRequestElement" type="tns:FormRequest"/>
    <xsd:element name="personElement" type="tns:Person"/>
    <xsd:element name="departmentElement" type="tns:Department"/>
    <xsd:element name="vehicle" type="tns:Vehicle"/>
    <xsd:element name="loadFormReturn" type="xsd:boolean"/>
    <xsd:element name="editFormReturn" type="xsd:boolean"/>
    </xsd:schema>
    Wsdl File:
    <?xml version="1.0" encoding="UTF-8"?>
    <definitions name="userWS" targetNamespace="http://j2ee.netbeans.org/wsdl/userWS"
    xmlns="http://schemas.xmlsoap.org/wsdl/"
    xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:ns="http://xml.netbeans.org/schema/Abruf38" xmlns:plnk="http://docs.oasis-open.org/wsbpel/2.0/plnktype" xmlns:tns="http://j2ee.netbeans.org/wsdl/userWS" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/">
    <types>
    <xsd:schema targetNamespace="http://j2ee.netbeans.org/wsdl/userWS">
    <xsd:import namespace="http://xml.netbeans.org/schema/Abruf38" schemaLocation="Abruf38.xsd"/>
    </xsd:schema>
    </types>
    <message name="loadFormRequest">
    <part name="formRequest" element="ns:formRequestElement"/>
    <part name="person" element="ns:personElement"/>
    <part name="department" element="ns:departmentElement"/>
    </message>
    <message name="loadFormReply">
    <part name="retVal" element="ns:loadFormReturn"/>
    </message>
    <portType name="userWSPortType">
    <operation name="loadForm">
    <input name="input1" message="tns:loadFormRequest"></input>
    <output name="output1" message="tns:loadFormReply"/>
    </operation>
    </portType>
    <binding name="userWSBinding" type="tns:userWSPortType">
    <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
    <operation name="loadForm">
    <soap:operation/>
    <input name="input1">
    <soap:body use="literal"/>
    </input>
    <output name="output1">
    <soap:body use="literal"/>
    </output>
    </operation>
    </binding>
    <service name="userWSService">
    <port name="userWSPort" binding="tns:userWSBinding">
    <soap:address location="http://localhost:18181/userWSService/userWSPort"/>
    </port>
    </service>
    <plnk:partnerLinkType name="userWS1">
    <!-- A partner link type is automatically generated when a new port type is added. Partner link types are used by BPEL processes.
    In a BPEL process, a partner link represents the interaction between the BPEL process and a partner service. Each partner link is associated with a partner link type.
    A partner link type characterizes the conversational relationship between two services. The partner link type can have one or two roles.-->
    <plnk:role name="userWSPortTypeRole" portType="tns:userWSPortType"/>
    </plnk:partnerLinkType>
    </definitions>
    The message that Netbeans says when trying to put more parts to the message is:
    WS-I Basic Profile Rule R2210: If a document-literal binding in a DESCRIPTION does not specify the parts attribute on a soapbind:body element, the corresponding abstract wsdl:message MUST define zero or one wsdl:parts.
    Please...I am desperate, cause I am pressed by time!
    Can anyone tell me how can I make it work. Cause it is very common to use a Web service operation that has more than ONE parameter.
    I am waiting for your replys!

    Hi,
    Change the <soap:binding style="document"... to <soap:binding style="rpc"... and see if that works.
    I'm not sure how to get <soap:binding style="document"... working yet - I'm not that experienced in web services yet.
    Hope this helps and is not too late.
    Regards,
    Greg Nye

  • How to get full SOAP message in WebService

    hi,
    Is it possible to get SOAP message while Request operation during transaction in WebService.
    I tried with Handler, while retreiving message it is having a MessageContext. How to initilize that like example
    public boolean handleRequest(MessageContext mc) {
              SOAPMessageContext messageContext = (SOAPMessageContext) mc; 
              System.out.println("** Request: "+ messageContext.getMessage().toString());
              return true;
         }while i make a class called SoapHdlr i have implemented all methods including the above.
    In that from my class if i want to call the above method i need to pass MessageContext how to give that MessageContext or any other ways to get SOAPMessage fully.
    plz can any one guide me there
    ThanKQ

    I think, there are some concepts missunderstood. First if you use JAX-WS- Metro framework, this kind of handlers will work. Also you should identify your SOAPHandler for your web service. For ex: in Netbeans 6, you can right click on service and select configure handlers. Then you decide your handler.
    Then automatically, Metro framework directs SOAPMessages to your SOAPHandler to handle full SOAPs. HandleMessage() method will work.
    If you have problem again, just ask.

  • Javax.xml.ws.soap.SOAPFaultException: Cannot validate request

    Hi All,
    I am trying to run the StockQuoteService from the blueprints. While it worked perfectly on my dev machine using Netbeans and Glassfish I have trouble to run it without Netbeans and sources (deployed as a war-file) on a seperate machine. I believe this has something todo with my configuration on the second machine but no idea which one and where to look at.
    My sun-web.xml looks liek that:
    <pre><?xml version="1.0" encoding="UTF-8" standalone="no"?>
    <!DOCTYPE sun-web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Application Server 9.0 Servlet 2.5//EN" "http://www.sun.com/software/appserver/dtds/sun-web-app_2_5-0.dtd">
    <sun-web-app>
    <context-root>StockQuoteService</context-root>
    <servlet>
    <servlet-name>StockService</servlet-name>
    <webservice-endpoint>
    <port-component-name>StockService</port-component-name>
    <endpoint-address-uri>/StockService</endpoint-address-uri>
    <message-security-binding auth-layer="SOAP" provider-id="AMServerProvider-UserNameToken-Plain">
    <message-security>
    <message>
    <java-method>
    <method-name>*</method-name>
    </java-method>
    </message>
    <request-protection auth-source="content"/>
    <response-protection auth-source="content"/>
    </message-security>
    </message-security-binding>
    <service-qname>
    <namespaceURI>http://sun.com/stockquote.wsdl</namespaceURI>
    <localpart>StockService</localpart>
    </service-qname>
    <servlet-impl-class>org.netbeans.identity.samples.StockService</servlet-impl-class>
    <debugging-enabled>true</debugging-enabled>
    </webservice-endpoint>
    </servlet>
    <class-loader delegate="true"/>
    <jsp-config>
    <property name="keepgenerated" value="true">
    <description>Keep a copy of the generated servlet class' java code.</description>
    </property>
    </jsp-config>
    </sun-web-app>
    I have configured (domain.xml) the service provider as follows, even if I configured it using the admin console (configuration->security-> message security -> SOAP):
    <provider-config class-name="com.sun.identity.agents.jsr196.as9soap.AMServerAuthModule" provider-id="AMServerProvider-UserNameToken-Plain" provider-type="server">
    <request-policy auth-source="content"/>
    <response-policy auth-source="content"/>
    <property name="providername" value="UserNameToken-Plain"/>
    </provider-config>
    I made sure that the correct user was entered in the AMServer admin console for the
    UserNameToken-Plain agent. But still no luck.
    Does anone has an idea about that?
    Below I post additional information from my app server logging, since it might helps. Thanks in advance fo looking at that.
    Edited by: rankin_ut on Jan 26, 2009 5:23 AM

    Log Viewer Results (40) Record Number Log Level Message Logger Timestamp Name-Value Pairs1017SEVEREContainer-auth: wss: Error validating request com.sun.enterprise.security.jauth.AuthException: Vali... (details)javax.enterprise.system.core.security26.01.2009 13:47:55.390_ThreadID=19;_ThreadName=httpSSLWorkerThread-80-0;_RequestID=e11c5dda-16ee-428b-b249-3d37eebd25cc;1016WARNING25) at java.lang.reflect.Method.invoke(Method.java:597) at com.sun.identity.agents.jsr196.as9soap.... (details)javax.enterprise.system.stream.err26.01.2009 13:47:55.390_ThreadID=19;_ThreadName=httpSSLWorkerThread-80-0;_RequestID=e11c5dda-16ee-428b-b249-3d37eebd25cc;1015SEVEREFailed in Securing the Request.(details)javax.enterprise.system.core.security26.01.2009 13:47:55.390_ThreadID=19;_ThreadName=httpSSLWorkerThread-80-0;_RequestID=e11c5dda-16ee-428b-b249-3d37eebd25cc;1014INFO47:55:390 PM MEZ: Thread[httpSSLWorkerThread-80-0,10,Grizzly] ERROR: AdminTokenAction: FATAL ERROR: ... (details)javax.enterprise.system.stream.out26.01.2009 13:47:55.390_ThreadID=19;_ThreadName=httpSSLWorkerThread-80-0;1013INFO47:55:390 PM MEZ: Thread[httpSSLWorkerThread-80-0,10,Grizzly] AdminTokenAction: App user name or pas... (details)javax.enterprise.system.stream.out26.01.2009 13:47:55.390_ThreadID=19;_ThreadName=httpSSLWorkerThread-80-0;1012INFO47:55:390 PM MEZ: Thread[httpSSLWorkerThread-80-0,10,Grizzly] AdminTokenAction::run Unable to get SS... (details)javax.enterprise.system.stream.out26.01.2009 13:47:55.390_ThreadID=19;_ThreadName=httpSSLWorkerThread-80-0;1011INFO47:55:390 PM MEZ: Thread[httpSSLWorkerThread-80-0,10,Grizzly] AdminTokenAction::getSSOToken Not foun... (details)javax.enterprise.system.stream.out26.01.2009 13:47:55.390_ThreadID=19;_ThreadName=httpSSLWorkerThread-80-0;1010INFO47:55:375 PM MEZ: Thread[httpSSLWorkerThread-80-0,10,Grizzly] SOAPRequestHandler.validateRequest: In... (details)javax.enterprise.system.stream.out26.01.2009 13:47:55.375_ThreadID=19;_ThreadName=httpSSLWorkerThread-80-0;1009INFO47:55:375 PM MEZ: Thread[httpSSLWorkerThread-80-0,10,Grizzly] SOAPRequestHandler.Init map:{WSDL_MODE... (details)javax.enterprise.system.stream.out26.01.2009 13:47:55.375_ThreadID=19;_ThreadName=httpSSLWorkerThread-80-0;1008INFOAMServerAuthModule.Init(details)Edited by: rankin_ut on Jan 26, 2009 5:25 AM

  • Java.lang.NoClassDefFoundError: javax/xml/rpc/soap/SOAPFaultException

    I have created webservice client using jwsdp-2.0 + JDK 1.5
    in Netbeans 4.1 IDE it
    works perfectly in the netbeans and also works at the command prompt but when i
    create a Jar file from the netbeans and run at the command prompt with following
    i have included all the jar files from the jwsdp-2.0 pack in the manifest file and have
    also specified the main class
    java -jar test.jar it gives following error
    java.lang.NoClassDefFoundError: javax/xml/rpc/soap/SOAPFaultException

    You need the JAX-RPC classes in your class path.

  • SOAP error when trying to invoke an WebService

    Hello.
    I have an ejb 3.0 as a WebService. I deployed it on Jboss 4.05GA, all ok.
    But when i try to call the service from an application it does't work.
    XML reader error: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[1,1]
    Message: Premature end of file.
    at com.sun.xml.internal.ws.streaming.XMLStreamReaderUtil.wrapException(XMLStreamReaderUtil.java:249)
    [b]
    and in Jboss i have:
    16:43:50,835 ERROR [StandardEndpointServlet] Error processing web service request
    javax.xml.rpc.JAXRPCException: Cannot create SOAPFault message for: javax.xml.rpc.soap.SOAPFaultException: setProperty must be overridden by all subclasses of SOAPMessage
    at org.jboss.ws.jaxrpc.SOAPFaultExceptionHelper.exceptionToFaultMessage(SOAPFaultExceptionHelper.java:194)
    here is the source of my application:
    public class Down {
    @WebServiceRef(wsdlLocation="http://localhost.localdomain:8080/EJBModule1/NewWebService?WSDL")
    static public App.NewWebServiceService service;
    /** Creates a new instance of Down */
    public Down() {
    try {
    App.NewWebService we=new NewWebServiceService().getNewWebServicePort();
    //if (service == null) System.err.println("service e null");
    //else we = service.getNewWebServicePort();
    if (we != null) System.out.println(we.add(2,3));
    else System.out.println("E null!!");
    } catch (Exception ex) {ex.printStackTrace();}
    public static void main(String[] args) {
    Down dd = new Down();
    If I use the @WebServiceRef, service is null and i can't do anything. NewWebServiceService is generated (I used a new WebService/Web Service Client) and it added it as a WebServiceReference in NetBeans). Thanks a lot!

    Hi!
    This error occurs if you run jboss on SDK 1.6. Using JDK 1.5, it works fine. See http://www.jboss.org/?module=bb&op=viewtopic&p=4020868 for more information concerning this bug.
    Best regards,
    Thilo

  • Help-kerberos works with spnego keytab file but not in netbeans and Metro

    Hi,
    Appreciate if someone can shed some light on this problem and guide on what else am I missing.
    I'm trying to call .NET based WCF webservice (MS Dynamics CRM - OrganizationSvc) from a java client. Started looking at Metro framework for interoperability. I was able to generate all the proxy classes and was able to write the code to invoke web service. However the challenge was using Kerberos based authentication and related setup.
    I primarily followed the link below which was very helpful but had to dig more to get more specific details.
    http://blogs.sun.com/enterprisetechtips/entry/building_kerberos_based_secure_services
    Tried to follow netbeans route and hit some roadblocks in verifying the setup (krb5.conf & login.conf & wsit-client.xml). So, came across SPNEGO and used their examples, made changes accordingly and after experimenting with various configuration settings(krb5.conf and login.conf), finallyI was able to run HelloKDC & HelloKeytab files successfully.
    krb5.conf_
    [libdefaults]
    default_realm = NA.CONVERGYS.COM
    [realms]
    NA.CONVERGYS.COM = {
    kdc = CDCWW13.na.convergys.com
    admin_server = CDCWW13.na.convergys.com
    [domain_realm]
    .na.convergys.com = NA.CONVERGYS.COM
    login.conf_
    spnego-server {
    com.sun.security.auth.module.Krb5LoginModule required
    useKeyTab=true
    keyTab="C:/WINDOWS/orldwv705_feb03.keytab"
    doNotPrompt=false
    storeKey=true
    principal="HOST/ORLDWV705.na.convergys.com"
    debug=true;
    C:\spnego-r7>klist -k C:\WINDOWS\orldwv705_feb03.keytab
    Key tab: C:\WINDOWS\orldwv705_feb03.keytab, 1 entry found.
    [1] Service principal: HOST/[email protected]
    KVNO: 7
    With these settings, I was able to successfully make the call & Hello Keytab was able to get the Ticket and authenticate.
    http://spnego.sourceforge.net/index.html
    http://spnego.sourceforge.net/client_keytab.html
    http://spnego.sourceforge.net/troubleshoot_hellokeytab.html
    However, when I run the example in Netbeans with the setup mentioned in the link below, I run into following exception...
    http://metro.java.net/guide/Developing_with_NetBeans.html#wsit_example_with_nb-creating_wsit_client
    http://metro.java.net/guide/_Configuring_Kerberos_for_Glassfish_and_Tomcat.html
    1) noticed that sc:KerberosConfig element in wsit-client.xml does not get updated automatically in netbeans ide, so manually edited to put the entries.
    2) also followed the setup required in glassfish domain.xml & login.conf xml.
    3) also noticed that netbeans setup requires us to use C:\Windows\krb5.ini file which is nothing but krb5.conf file referred elsewhere.)
    wsit-client.xml_
    <wsp:Policy wsu:Id="ClientKerberosPolicy"
    xmlns:sc="http://schemas.sun.com/2006/03/wss/client"
    xmlns:wspp="http://java.sun.com/xml/ns/wsit/policy"
    xmlns:scc="http://schemas.sun.com/ws/2006/05/sc/client"
    xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy"
    xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
    <wsp:ExactlyOne>
    <wsp:All>
    <sc:KerberosConfig wspp:visibility="private"
    loginModule="KerberosClient"
    servicePrincipal="HOST/ORLDWV705.na.convergys.com"
    credentialDelegation="true" />
    </wsp:All>
    </wsp:ExactlyOne>
    </wsp:Policy>
    ERROR
    INFO: WSP5018: Loaded WSIT configuration from file: file:/C:/Documents%20and%20Settings/rchoppal/My%20Documents/NetBeansProjects/TestOrgSvc/build/web/WEB-INF/classes/META-INF/wsit-client.xml.
    WARNING: [failed to localize] WSP_0075_PROBLEMATIC_ASSERTION_STATE({http://schemas.microsoft.com/xrm/2011/Contracts/Services}AuthenticationPolicy, UNKNOWN)
    WARNING: [failed to localize] WSP_0019_SUBOPTIMAL_ALTERNATIVE_SELECTED(PARTIALLY_SUPPORTED)
    INFO: >>>KinitOptions cache name is C:\Documents and Settings\rchoppal\krb5cc_rchoppal
    INFO: >>> KrbCreds found the default ticket granting ticket in credential cache.
    SEVERE: WSITPVD0050: Error while Securing Request Message.
    com.sun.xml.wss.XWSSecurityException: Unexpected Exception in Kerberos login - unable to continue
    at com.sun.xml.ws.security.impl.kerberos.KerberosLogin.login(KerberosLogin.java:94)
    at com.sun.xml.wss.impl.misc.WSITProviderSecurityEnvironment.doKerberosLogin(WSITProviderSecurityEnvironment.java:3049)
    at com.sun.xml.wss.provider.wsit.WSITClientAuthContext.populateKerberosContext(WSITClientAuthContext.java:911)
    at com.sun.xml.wss.provider.wsit.WSITClientAuthContext.secureRequest(WSITClientAuthContext.java:318)
    at com.sun.xml.wss.provider.wsit.WSITClientAuthContext.secureRequest(WSITClientAuthContext.java:291)
    at com.sun.enterprise.security.webservices.ClientSecurityPipe.process(ClientSecurityPipe.java:158)
    Caused by: javax.security.auth.login.LoginException: java.lang.NullPointerException
    at sun.security.krb5.Credentials.acquireDefaultCreds(Credentials.java:451) (i tried to search open source code, but this line did'nt match exactly)
    at sun.security.krb5.Credentials.acquireTGTFromCache(Credentials.java:272)
    at com.sun.security.auth.module.Krb5LoginModule.attemptAuthentication(Krb5LoginModule.java:589)
    at com.sun.security.auth.module.Krb5LoginModule.login(Krb5LoginModule.java:542)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at javax.security.auth.login.LoginContext.invoke(LoginContext.java:769)
    at javax.security.auth.login.LoginContext.access$000(LoginContext.java:186)
    at javax.security.auth.login.LoginContext$4.run(LoginContext.java:683)
    at java.security.AccessController.doPrivileged(Native Method)
    at javax.security.auth.login.LoginContext.invokePriv(LoginContext.java:680)
    at javax.security.auth.login.LoginContext.login(LoginContext.java:579)
    at com.sun.xml.ws.security.impl.kerberos.KerberosLogin.login(KerberosLogin.java:85)
    SEVERE: SEC2004: Container-auth: wss: Error securing request
    javax.xml.ws.WebServiceException: WSITPVD0050: Error while Securing Request Message.
    at com.sun.xml.wss.provider.wsit.WSITClientAuthContext.secureRequest(WSITClientAuthContext.java:299)
    at com.sun.enterprise.security.webservices.ClientSecurityPipe.process(ClientSecurityPipe.java:158)
    Caused by: javax.xml.ws.soap.SOAPFaultException: Unexpected Exception in Kerberos login - unable to continue
    at com.sun.xml.wss.provider.wsit.WSITAuthContextBase.getSOAPFaultException(WSITAuthContextBase.java:1617)
    at com.sun.xml.wss.provider.wsit.WSITAuthContextBase.getSOAPFaultException(WSITAuthContextBase.java:1633)
    ... 42 more
    WARNING: StandardWrapperValve[TestOrgSvcServlet]: PWC1406: Servlet.service() for servlet TestOrgSvcServlet threw exception
    javax.xml.ws.WebServiceException: Cannot secure request for {http://schemas.microsoft.com/xrm/2011/Contracts}CustomBinding_IOrganizationService
    at com.sun.enterprise.security.webservices.ClientSecurityPipe.process(ClientSecurityPipe.java:165)
    Caused by: javax.xml.ws.WebServiceException: WSITPVD0050: Error while Securing Request Message.
    at com.sun.xml.wss.provider.wsit.WSITClientAuthContext.secureRequest(WSITClientAuthContext.java:299)
    at com.sun.enterprise.security.webservices.ClientSecurityPipe.process(ClientSecurityPipe.java:158)
    ... 40 more
    Caused by: javax.xml.ws.soap.SOAPFaultException: Unexpected Exception in Kerberos login - unable to continue
    at com.sun.xml.wss.provider.wsit.WSITAuthContextBase.getSOAPFaultException(WSITAuthContextBase.java:1617)
    at com.sun.xml.wss.provider.wsit.WSITAuthContextBase.getSOAPFaultException(WSITAuthContextBase.java:1633)
    ... 42 more
    Edited by: user6748004 on Feb 3, 2011 5:36 PM
    Edited by: user6748004 on Feb 3, 2011 5:38 PM

    Hi Gasha,
    The only change I did after this, was to try and use 'KerberosServer' configuration from the wsit-client.xml. Atleast, this enabled the glassfish application to load the configuration related to keytab etc, and use it to communicate with the WCF service for negotiation.
    <sc:KerberosConfig wspp:visibility="private"
    loginModule="KerberosServer"
    servicePrincipal="HOST/ORLDWV705.na.convergys.com"
    credentialDelegation="true" />
    login.conf has
    KerberosServer {
    com.sun.security.auth.module.Krb5LoginModule required
    useKeyTab=true
    keyTab="C:/WINDOWS/orldwv705_feb03.keytab"
    doNotPrompt=false
    storeKey=true
    principal="HOST/ORLDWV705.na.convergys.com"
    debug=true;
    fyi.. Used the following way to create the keytab
    Keytab was created using below instructions
    ktpass -princ HOST/[email protected]
    -mapUser [email protected]
    -mapOp set
    -pass *
    -crypto DES-CBC-MD5
    -pType KRB5_NT_PRINCIPAL
    -out orldwv705.keytab
    Targeting domain controller: CDCWW13.na.convergys.com
    Successfully mapped HOST/ORLDWV705.na.convergys.com to svcMSCRMDev.
    Key created.
    Output keytab to orldwv705.keytab:
    Keytab version: 0x502
    keysize 75 HOST/[email protected] ptype 1 (KRB5_NT_PRINCIPAL) vno 8 etype 0x3 (DES-CBC-MD5) keylength 8 (0x0bc27ca83891dc2a)
    Also realised that we need to add 'HTTP/ORLDWV705.na.convergys.com' & 'http/ORLDWV705.na.convergys.com' using set SPN commands on the AD of the server where CRM is installed.
    With these changes, the negotiate authentication seems to have happened using the Kerberos token from the keytab, but later ran into an error for which I was not able to get any clue to go forward. Someone in another post about this error suggested that it worked once they changed principal names, but when I tried I did'nt get any success.
    This is where I'm struck now. What I don't know is if there is another setup from which we can try a similar interoperability example for ex.. weblogic 10.1 & eclipse which is more close to our real environment.
    SEVERE: SEC2004: Container-auth: wss: Error securing request
    java.lang.IllegalArgumentException: Missing argument
    at javax.crypto.spec.SecretKeySpec.<init>(DashoA13*..)
    at com.sun.xml.ws.security.impl.kerberos.KerberosContext.getSecretKey(KerberosContext.java:91)
    at com.sun.xml.wss.impl.filter.SignatureFilter.process(SignatureFilter.java:525)
    Edited by: user6748004 on Apr 8, 2011 10:39 AM

  • SOAP over HTTP/POST

    Hi everyone,
    I'd be eternally grateful if someone could provide me with a quick + easy solution to the following (basic?) task.
    I have a user form with the required parameters and a submit button. I have an XML schema which specifies the format for the soap requests and responses. How do I accept user input, wrap it into a soap request, send it via HTTP/POST to a server ( http://localhost:9999/xyz/xyz), wait for a soap response and display the response in a readable format to the user when they press the submit button? Not that hard is it?!
    Please try to be a specific as possible because I'm no Java expert. I'm just so confused with all the tutorials about wsdl, bpel, tomcat, jax ws, glassfish etc etc etc!
    I use netbeans and java app server 9, though I'm open to other IDEs/servers.
    Any help will be greatly appreciated,
    Ruth

    https://saaj.dev.java.net/source/browse/*checkout*/saSAAJ: aj/saaj-ri/docs/index.html
    The Java Web Services Tutorial:
    http://java.sun.com/webservices/docs/1.6/tutorial/doc/index.html
    (Chapter 5)
    SOAP Tutorial: http://www.w3schools.com/soap/default.asp

  • SOAP requests hang for 5 minutes. Why?

    As a first step in using the SOAP features integrated in Java 6 I went through the JAX-WS 2.0 tutorial at http://java.sun.com/developer/technicalArticles/J2SE/jax_ws_2/.
    I created the simple webservice as well as the client (I am not using the Netbeans IDE but I did the corresponding in my IDE).
    I started the service in a local VM and started the local client application as well.
    What's really odd is: the service and the client worked on first attempt (and I verified this by inserting println statements into the code), but the return of the result always hangs for pretty exactly 5 minutes (by when - I guess - some timeout strikes).
    I.e. the client issues the request and the server-side gets called practically immediately, but the result is passed back to the client only 5 minutes later.
    At first I had thought, that things didn't work, but when I got distracted and later returned to my screen I found, that my WebService requests had actually worked as designed.
    But why does the return of the response take 5 minutes? Any ideas, anybody?
    Michael

    I've seen similar behavior, but not on every invocation. In my case:
    1) Nightly backups were starting at 5:30PM every day - every request then timed out;
    2) Our development servers were virtual machines - they were often slow to wake up.
    Otherwise, the web services responded normally.

  • Trying to create a web service in NetBeans

    Hi Folks let's cut right to the chase
    I've followed the demos / tutorials and built a few simple web services running on glassfish / mysql / netBeans IDE. All well and good. What I really want now is to be able to return an XML document or a string with xml data from my service.
    I tried building an XML document using xerces / document builder (hopefully this is familiar to you) Unfortunately, the results I get back are not XML encoded, and also as I add elements & attributes to my document, it often creates a transformException (which I don't get when doing it from the console). I also get an exception if I try to add two elements as children to the same parent, as indicated in the code snippet below - I don't know what I'm doing wrong there.
              Document doc = DocumentBuilderFactory.newInstance().newDocumentBuilder().newDocument();
              doc.createElement("Word");
              Element top = doc.createElement("myapp");
            Element word = doc.createElement("word");//new Element("word");
            //Attr attr = doc.createAttribute("testval");
            word.setAttribute("test", "חֹשֶׁך");
            //word.setNodeValue("חֹשֶׁך");
            word.setTextContent("חֹשֶׁך");
            doc.appendChild(top);
            top.appendChild(word);
            Element word2 = doc.createElement("word");
            top.appendChild(word2);So I redid my web service just using a PrintWriter / StringWriter, and at the end replacing '<' and '>' with &lt; &gt; That's all well and good, and I get back the proper response, with the xml tags showing. But I still get an error message: Service invocation threw an exception with message :
    " com.sun.org.apache.xerces.internal.impl.io.MalformedByteSequenceException: Invalid byte 2 of 2-byte UTF-8 sequence.; Refer to the server log for more details"
    (more details at the very bottom). As you may have noticed in the code snippet I posted above, I'm using strings of hebrew characters.
    I don't understand how I can get a response back and STILL get a Service invocation exception message.
    I also don't know how to fix whatever's causing the exception. Anyone dealt with this kind of thing before?
    Thanks! (Code below)
        private static void addWord(PrintWriter pw, Words w, List<Definition> definitions) {
            //Element word = doc.createElement("word");//new Element("word");
            pw.append("<Word>");
            pw.append("<HW>" + w.getWord() + "</HW>");
    //        word.setTextContent(w.getWord());       
    //        doc.appendChild(word);
            for (Definition def : definitions) {
      //          Element definition = doc.createElement("Definition");
                pw.append("<Definition>" + def.getDefinition() + "</Definition>");
      //          definition.setTextContent(def.getDefinition());
                String pos = def.getPos();
                if (pos == null) pos = "";
                String stem = def.getStem();
                if (stem == null) stem = "";
                pw.append("<POS>" + pos + "</POS>");
                pw.append("<Stem>" + stem + "</Stem>");
    //            Element posElem = doc.createElement("POS");
    //            posElem.setTextContent(pos);
    //            Element stemElem = doc.createElement("Stem");
    //            stemElem.setTextContent(stem);
    //            definition.setAttribute("POS", def.getPos());
    //            definition.setAttribute("stem", def.getStem());
    //            word.appendChild(definition);
    //            word.appendChild(posElem);
    //            word.appendChild(stemElem);
            pw.append("</Word>");
        }SOAP Response
    Service invocation threw an exception with message : com.sun.org.apache.xerces.internal.impl.io.MalformedByteSequenceException: Invalid byte 2 of 2-byte UTF-8 sequence.; Refer to the server log for more details
    Exceptions details : javax.xml.transform.TransformerException: com.sun.org.apache.xerces.internal.impl.io.MalformedByteSequenceException: Invalid byte 2 of 2-byte UTF-8 sequence.
    javax.servlet.ServletException: javax.xml.transform.TransformerException: com.sun.org.apache.xerces.internal.impl.io.MalformedByteSequenceException: Invalid byte 2 of 2-byte UTF-8 sequence. at org.glassfish.webservices.monitoring.WebServiceTesterServlet.doPost(WebServiceTesterServlet.java:330) at org.glassfish.webservices.monitoring.WebServiceTesterServlet.invoke(WebServiceTesterServlet.java:106) at org.glassfish.webservices.EjbWebServiceServlet.service(EjbWebServiceServlet.java:114) at javax.servlet.http.HttpServlet.service(HttpServlet.java:848) at com.sun.grizzly.http.servlet.ServletAdapter$FilterChainImpl.doFilter(ServletAdapter.java:1002) at com.sun.grizzly.http.servlet.ServletAdapter$FilterChainImpl.invokeFilterChain(ServletAdapter.java:942) at com.sun.grizzly.http.servlet.ServletAdapter.doService(ServletAdapter.java:404) at com.sun.grizzly.http.servlet.ServletAdapter.service(ServletAdapter.java:354) at com.sun.grizzly.tcp.http11.GrizzlyAdapter.service(GrizzlyAdapter.java:168) at com.sun.enterprise.v3.server.HK2Dispatcher.dispath(HK2Dispatcher.java:117) at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:234) at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:822) at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:719) at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1013) at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:225) at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:137) at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:104) at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:90) at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:79) at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:54) at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:59) at com.sun.grizzly.ContextTask.run(ContextTask.java:71) at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:532) at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:513) at java.lang.Thread.run(Thread.java:662) Caused by: javax.xml.transform.TransformerException: com.sun.org.apache.xerces.internal.impl.io.MalformedByteSequenceException: Invalid byte 2 of 2-byte UTF-8 sequence. at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:719) at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:313) at org.glassfish.webservices.monitoring.WebServiceTesterServlet.dumpMessage(WebServiceTesterServlet.java:362) at org.glassfish.webservices.monitoring.WebServiceTesterServlet.doPost(WebServiceTesterServlet.java:320) ... 24 more Caused by: com.sun.org.apache.xerces.internal.impl.io.MalformedByteSequenceException: Invalid byte 2 of 2-byte UTF-8 sequence. at com.sun.org.apache.xerces.internal.impl.io.UTF8Reader.invalidByte(UTF8Reader.java:684) at com.sun.org.apache.xerces.internal.impl.io.UTF8Reader.read(UTF8Reader.java:369) at com.sun.org.apache.xerces.internal.impl.XMLEntityScanner.load(XMLEntityScanner.java:1742) at com.sun.org.apache.xerces.internal.impl.XMLEntityScanner.skipChar(XMLEntityScanner.java:1416) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2792) at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:648) at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:140) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:511) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:808) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:737) at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:119) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1205) at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transformIdentity(TransformerImpl.java:609) at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:707)

    Okay I think I get what's happening this is just a problem with NetBeans printing the SOAP response. So I think I'm good

  • Processing of soap message

    some help is required on the SOAP processing
    <SOAP-ENV:Envelope xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <SOAP-ENV:Body>
    <getPricedAvailability xmlns="http://www.openuri.org/" xmlns:tget="http://www.ba.com/schema/tGetPricedAvailabilityV1">
    <tget:GetPricedAvailabilityRequest>
    <Name>ian</Name>
    ....i need to add a tag name[in between the two tags] <asl>US </asl>
    <age>1234</age>
    </tget:GetPricedAvailabilityRequest>
    </getPricedAvailability>
    </SOAP-ENV:Body>
    </SOAP-ENV:Envelope
    Can any one suggest or send me the piece of code which does this..
    i tried to add the tag by using the below code but in vain it didn't happen ...it is not adding in between the 2 tags.
    it is adding after <age>.... Can any one help me in this...Is there is any other way of parsing the SOAP message is possible
    SOAPMessageContext smc = (SOAPMessageContext)mc;
    SOAPMessage sm = smc.getMessage();
    SOAPEnvelope env = sm.getSOAPPart().getEnvelope();
    SOAPBody body = env.getBody();
    javax.xml.soap.Name sName;
    System.out.println(" Entering callEndTag #########################################");
    System.out.println("body"+body +" "+"env"+env);
    if ( body != null ){
    java.util.Iterator childElems = body.getChildElements();
    SOAPElement child;
    int i=0;
    // iterate through child elements
    while (childElems.hasNext())
    System.out.println("childElems" +childElems);
    Object elem = childElems.next();
    System.out.println("elem" +elem);
    if(elem instanceof SOAPElement )
    // get child element and its name
    child = (SOAPElement) elem;
    sName = child.getElementName();
    if (sName.getLocalName().equals("getPricedAvailability"))
    childElems = child.getChildElements();
    while (childElems.hasNext())
    // get next child element
    elem = childElems.next();
    if(elem instanceof SOAPElement )
    child = (SOAPElement) elem;
    sName = child.getElementName();
    if (sName.getLocalName().equals("GetPricedAvailabilityRequest"))
    {childElems = child.getChildElements();
                                                   sName = child.getElementName();
                                                   System.out.println("SNAME inSIDE IF  LOOP" +sName);
                                                   System.out.println("If Elem is a) instance ====After");
                                                   if (childElems.hasNext())
                                                      // get next child element
                                                       elem = childElems.next();
                                                       System.out.println("If Elem is a) instance  == before");
                                                      if(elem instanceof SOAPElement )
                                                          System.out.println("If Elem is a) instance ====After");
                                                          System.out.println("before type cast" );  
                                                          child = (SOAPElement) elem;
                                                          sName = child.getElementName();
                                                          System.out.println("Start adding process added end date" +sName);
                                                          SOAPElement fResponse12 =  child.addChildElement(env.createName("EndDate-- ==child ")); 
                                                          fResponse12.addAttribute(env.createName("xmlns"),   
                                                          fResponse12.addTextNode(strEndDate );
    ((SOAPMessageContext)mc).setMessage(sm);

    Hi Experts,
    I'm trying to protect a web service deployed in jcaps 5.1.1, using SAML assertions against an Access Manager 7/7.1, the web services clients are both, web and standalone applications, I also have read netbeans tutorials, that expose how to implement identity webservices using AppServer 9.1 + AccessManager 7.1 using the SAML Holder of key and other security mechanisms, but this implementation requiere modifications to the server.policy file to add support to SOAP message security providers and HttpServlet message security providers, the addition of a library called amwebservicesprovider.jar to the classpath suffix (this library implements the jsr-196 java Authentication Service Provider Interface for Containers) and aditional configuration required in the AM side that is not detailed in the tutorials.
    Could someone guide me on how to protect the acces to a web services deployed in the jcaps logicalhost based on AM roles assigned to users?
    Any help is aprecciated
    Juan

Maybe you are looking for

  • I suddenly am unable to open attachments on received email. Get message Adobe Reader has stopped working. What do I do?

    My last two emails received this week have attachments which will not open, previously was fine. Get message "Adobe Reader has stopped working. Windows will close the program and notify you if a solution is available" But I never hear any more. What

  • Touchpad E520 replacement?

    The touchpad is not working, does not recognize mouse movement nor left-right click and confirmed its not disabled, can the defective part be replaced and if so where might I purchase it?

  • Firefox crashes when using Google as startpage

    Firefox crashes and gives me a general error mesage that it had to close down for certain reasons. This only happens when I use Google as my startpage. If I use any other website as startpage all works well and I can go to Google from there and every

  • Importing jpg files to PSE6

    Whenever I try to get photos from my camera or files on my computer the dialogue box shakes (really) and most of the file names disappear, and I get a message telling me that 'the file could not be copied'. Any ideas?

  • Solve 2 odes - nonlinear

    Hi, I have been trying to solve 2 odes over time in labview but I can't quite get it. I think my problem is that they are non-linear and I am going about it the wrong way. I have been trying to get a result from the Runge Kutta 4th Order.vi but it do