Web Service XML not attaching namespace to value object

I have a web services that I have introspected into Flex. The web service has one operation that sends 4 objects to the server.
The objects are: a number, an array of objects, a schedule object and a boolean. For some reason when the XML is sent, everything excecpt the object in the array has a namespace. The XML for the object looks something like this:
      <Servers>
        <tns:Tag>123456</tns:Tag>
        <tns:IP>10.35.155.190</tns:IP>
        <tns:useDHCP>true</tns:useDHCP>
        <tns:ipAddress />
        <tns:subNetmask />
        <tns:defaultGateway />
        <tns:hostName xsi:nil="true" />
        <tns:Domain>true</tns:Domain>
        <tns:ProfileId>50000</tns:ProfileId>
      </Servers>
What could be preventing this array of objects from getting the namespace?

What is the xmlns= for the file?

Similar Messages

  • Fault elt in web-services.xml NOT WORKING

    We are trying to capture an invalid message coming into our service before our
    service actually processes it. Per WLS7 documentation, it provides the ability
    to add a <fault> elt under the <params> elt in web-services.xml to perform that.
    Here's how the operations portion of our web-services.xml looks like:
    <operations>
    <operation method="echo(java.lang.String)" component="jcComp0" name="echo"
    handler-chain="diagnosticChain">
    <params>
    <param location="body" class-name="java.lang.String" style="in" name="echoString"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema" type="xsd:string">
    </param>
    <return-param location="body" class-name="java.lang.String" name="Result"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema" type="xsd:string">
    </return-param>
         <fault name="InvalidMessageException" class-name="com.gmacfs.routeone.diagnostic.InvalidMessageException"/>
    </params>
    </operation>
    </operations>
    However, when we tried doing that, we got a BIG set of exception while trying
    to build our client. It looks as follows:
    client:
    [clientgen] Generating client jar for diagnostic.ear ...
    [clientgen] Could not read Web Service deployment descriptor
    [clientgen] at weblogic.ant.taskdefs.webservices.clientgen.EARClientGen.run(EARClientGen.java:112)
    [clientgen] at weblogic.ant.taskdefs.webservices.clientgen.ClientGenTask.execute(ClientGenTask.java:270)
    [clientgen] at org.apache.tools.ant.Task.perform(Task.java:217)
    [clientgen] at org.apache.tools.ant.Target.execute(Target.java:164)
    [clientgen] at org.apache.tools.ant.Target.performTasks(Target.java:182)
    [clientgen] at org.apache.tools.ant.Project.executeTarget(Project.java:601)
    [clientgen] at org.apache.tools.ant.Project.executeTargets(Project.java:560)
    [clientgen] at org.apache.tools.ant.Main.runBuild(Main.java:454)
    [clientgen] at org.apache.tools.ant.Main.start(Main.java:153)
    [clientgen] at org.apache.tools.ant.Main.main(Main.java:176)
    [clientgen] --- Nested Exception ---
    [clientgen] Could not read Web Service deployment descriptor
    [clientgen] at weblogic.ant.taskdefs.webservices.clientgen.EARClientGen.getWebServiceDD(EARClientGen.java:332)
    [clientgen] at weblogic.ant.taskdefs.webservices.clientgen.EARClientGen.run(EARClientGen.java:110)
    [clientgen] at weblogic.ant.taskdefs.webservices.clientgen.ClientGenTask.execute(ClientGenTask.java:270)
    [clientgen] at org.apache.tools.ant.Task.perform(Task.java:217)
    [clientgen] at org.apache.tools.ant.Target.execute(Target.java:164)
    [clientgen] at org.apache.tools.ant.Target.performTasks(Target.java:182)
    [clientgen] at org.apache.tools.ant.Project.executeTarget(Project.java:601)
    [clientgen] at org.apache.tools.ant.Project.executeTargets(Project.java:560)
    [clientgen] at org.apache.tools.ant.Main.runBuild(Main.java:454)
    [clientgen] at org.apache.tools.ant.Main.start(Main.java:153)
    [clientgen] at org.apache.tools.ant.Main.main(Main.java:176)
    [clientgen] --- Nested Exception ---
    [clientgen] weblogic.webservice.dd.DDProcessingException: Could not find required
    attribute "type" for element <fault> (Line 28, Column 8)
    [clientgen] at weblogic.webservice.dd.ParsingHelper.getRequiredAttribute(ParsingHelper.java:287)
    [clientgen] at weblogic.webservice.dd.DDLoader.processFaultElement(DDLoader.java:1195)
    [clientgen] at weblogic.webservice.dd.DDLoader.processFaultElements(DDLoader.java:1166)
    [clientgen] at weblogic.webservice.dd.DDLoader.processParamsElement(DDLoader.java:1004)
    [clientgen] at weblogic.webservice.dd.DDLoader.processOperationElement(DDLoader.java:977)
    [clientgen] at weblogic.webservice.dd.DDLoader.processOperationElements(DDLoader.java:853)
    [clientgen] at weblogic.webservice.dd.DDLoader.processOperationsElement(DDLoader.java:841)
    [clientgen] at weblogic.webservice.dd.DDLoader.processWebServiceElement(DDLoader.java:378)
    [clientgen] at weblogic.webservice.dd.DDLoader.processWebServiceElements(DDLoader.java:283)
    [clientgen] at weblogic.webservice.dd.DDLoader.processWebServicesElement(DDLoader.java:271)
    [clientgen] at weblogic.webservice.dd.DDLoader.load(DDLoader.java:249)
    [clientgen] at weblogic.webservice.util.WebServiceWarFile.getWSDD(WebServiceWarFile.java:79)
    [clientgen] at weblogic.ant.taskdefs.webservices.clientgen.EARClientGen.getWebServiceDD(EARClientGen.java:330)
    [clientgen] at weblogic.ant.taskdefs.webservices.clientgen.EARClientGen.run(EARClientGen.java:110)
    [clientgen] at weblogic.ant.taskdefs.webservices.clientgen.ClientGenTask.execute(ClientGenTask.java:270)
    [clientgen] at org.apache.tools.ant.Task.perform(Task.java:217)
    [clientgen] at org.apache.tools.ant.Target.execute(Target.java:164)
    [clientgen] at org.apache.tools.ant.Target.performTasks(Target.java:182)
    [clientgen] at org.apache.tools.ant.Project.executeTarget(Project.java:601)
    [clientgen] at org.apache.tools.ant.Project.executeTargets(Project.java:560)
    [clientgen] at org.apache.tools.ant.Main.runBuild(Main.java:454)
    [clientgen] at org.apache.tools.ant.Main.start(Main.java:153)
    [clientgen] at org.apache.tools.ant.Main.main(Main.java:176)
    [clientgen] --------------- nested within: ------------------
    [clientgen] weblogic.webservice.util.WebServiceJarException: Could not load deployment
    descriptor - with nested exception:
    [clientgen] [weblogic.webservice.dd.DDProcessingException: Could not find required
    attribute "type" for element <fault> (Line 28, Column 8)]
    [clientgen] at weblogic.webservice.util.WebServiceWarFile.getWSDD(WebServiceWarFile.java:81)
    [clientgen] at weblogic.ant.taskdefs.webservices.clientgen.EARClientGen.getWebServiceDD(EARClientGen.java:330)
    [clientgen] at weblogic.ant.taskdefs.webservices.clientgen.EARClientGen.run(EARClientGen.java:110)
    [clientgen] at weblogic.ant.taskdefs.webservices.clientgen.ClientGenTask.execute(ClientGenTask.java:270)
    [clientgen] at org.apache.tools.ant.Task.perform(Task.java:217)
    [clientgen] at org.apache.tools.ant.Target.execute(Target.java:164)
    [clientgen] at org.apache.tools.ant.Target.performTasks(Target.java:182)
    [clientgen] at org.apache.tools.ant.Project.executeTarget(Project.java:601)
    [clientgen] at org.apache.tools.ant.Project.executeTargets(Project.java:560)
    [clientgen] at org.apache.tools.ant.Main.runBuild(Main.java:454)
    [clientgen] at org.apache.tools.ant.Main.start(Main.java:153)
    [clientgen] at org.apache.tools.ant.Main.main(Main.java:176)
    BUILD FAILED
    Anybody has any ideas?
    Thanks much,
    sami

    Manoj,
    Thanks a lot, THAT DID IT... two very helpful hints from you in a row.
    By the way, one thing worth mentioning is that the Weblogic documentation that
    we explored did not have enough information about that issue.
    Thanks again.
    sami
    "manoj cheenath" <[email protected]> wrote:
    Buried deep in the stack trace, is this little
    detail:
    Could not find required
    attribute "type" for element <fault> (Line 28, Column 8)
    So the correct DD should look something like:
    <fault type="typeNS:string"
    xmlns:typeNS="http://www.w3.org/2001/XMLSchema"
    class-name="tutorial.sample9.HelloWorldException"
    name="HelloWorldException">
    </fault>
    Also, check out this example:
    http://manojc.com/?sample9
    There is a know problem: WLS can not handle
    exceptions that contain complex data types.
    This will be fixed in SP1.
    Regards,
    -manoj
    http://manojc.com
    "sami titi" <[email protected]> wrote in message
    news:[email protected]...
    We are trying to capture an invalid message coming into our servicebefore
    our
    service actually processes it. Per WLS7 documentation, it providesthe
    ability
    to add a <fault> elt under the <params> elt in web-services.xml toperform
    that.
    Here's how the operations portion of our web-services.xml looks like:
    <operations>
    <operation method="echo(java.lang.String)" component="jcComp0"name="echo"
    handler-chain="diagnosticChain">
    <params>
    <param location="body" class-name="java.lang.String" style="in"name="echoString"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema" type="xsd:string">
    </param>
    <return-param location="body" class-name="java.lang.String"name="Result"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema" type="xsd:string">
    </return-param>
    <fault name="InvalidMessageException"class-name="com.gmacfs.routeone.diagnostic.InvalidMessageException"/>
    </params>
    </operation>
    </operations>
    However, when we tried doing that, we got a BIG set of exception whiletrying
    to build our client. It looks as follows:
    client:
    [clientgen] Generating client jar for diagnostic.ear ...
    [clientgen] Could not read Web Service deployment descriptor
    [clientgen] atweblogic.ant.taskdefs.webservices.clientgen.EARClientGen.run(EARClientGen.ja
    va:112)
    [clientgen] atweblogic.ant.taskdefs.webservices.clientgen.ClientGenTask.execute(ClientGenT
    ask.java:270)
    [clientgen] at org.apache.tools.ant.Task.perform(Task.java:217)
    [clientgen] at org.apache.tools.ant.Target.execute(Target.java:164)
    [clientgen] atorg.apache.tools.ant.Target.performTasks(Target.java:182)
    [clientgen] atorg.apache.tools.ant.Project.executeTarget(Project.java:601)
    [clientgen] atorg.apache.tools.ant.Project.executeTargets(Project.java:560)
    [clientgen] at org.apache.tools.ant.Main.runBuild(Main.java:454)
    [clientgen] at org.apache.tools.ant.Main.start(Main.java:153)
    [clientgen] at org.apache.tools.ant.Main.main(Main.java:176)
    [clientgen] --- Nested Exception ---
    [clientgen] Could not read Web Service deployment descriptor
    [clientgen] atweblogic.ant.taskdefs.webservices.clientgen.EARClientGen.getWebServiceDD(EAR
    ClientGen.java:332)
    [clientgen] atweblogic.ant.taskdefs.webservices.clientgen.EARClientGen.run(EARClientGen.ja
    va:110)
    [clientgen] atweblogic.ant.taskdefs.webservices.clientgen.ClientGenTask.execute(ClientGenT
    ask.java:270)
    [clientgen] at org.apache.tools.ant.Task.perform(Task.java:217)
    [clientgen] at org.apache.tools.ant.Target.execute(Target.java:164)
    [clientgen] atorg.apache.tools.ant.Target.performTasks(Target.java:182)
    [clientgen] atorg.apache.tools.ant.Project.executeTarget(Project.java:601)
    [clientgen] atorg.apache.tools.ant.Project.executeTargets(Project.java:560)
    [clientgen] at org.apache.tools.ant.Main.runBuild(Main.java:454)
    [clientgen] at org.apache.tools.ant.Main.start(Main.java:153)
    [clientgen] at org.apache.tools.ant.Main.main(Main.java:176)
    [clientgen] --- Nested Exception ---
    [clientgen] weblogic.webservice.dd.DDProcessingException: Could notfind
    required
    attribute "type" for element <fault> (Line 28, Column 8)
    [clientgen] atweblogic.webservice.dd.ParsingHelper.getRequiredAttribute(ParsingHelper.java
    :287)
    [clientgen] atweblogic.webservice.dd.DDLoader.processFaultElement(DDLoader.java:1195)
    [clientgen] atweblogic.webservice.dd.DDLoader.processFaultElements(DDLoader.java:1166)
    [clientgen] atweblogic.webservice.dd.DDLoader.processParamsElement(DDLoader.java:1004)
    [clientgen] atweblogic.webservice.dd.DDLoader.processOperationElement(DDLoader.java:977)
    [clientgen] atweblogic.webservice.dd.DDLoader.processOperationElements(DDLoader.java:853)
    [clientgen] atweblogic.webservice.dd.DDLoader.processOperationsElement(DDLoader.java:841)
    [clientgen] atweblogic.webservice.dd.DDLoader.processWebServiceElement(DDLoader.java:378)
    [clientgen] atweblogic.webservice.dd.DDLoader.processWebServiceElements(DDLoader.java:283)
    [clientgen] atweblogic.webservice.dd.DDLoader.processWebServicesElement(DDLoader.java:271)
    [clientgen] at weblogic.webservice.dd.DDLoader.load(DDLoader.java:249)
    [clientgen] atweblogic.webservice.util.WebServiceWarFile.getWSDD(WebServiceWarFile.java:79
    [clientgen] atweblogic.ant.taskdefs.webservices.clientgen.EARClientGen.getWebServiceDD(EAR
    ClientGen.java:330)
    [clientgen] atweblogic.ant.taskdefs.webservices.clientgen.EARClientGen.run(EARClientGen.ja
    va:110)
    [clientgen] atweblogic.ant.taskdefs.webservices.clientgen.ClientGenTask.execute(ClientGenT
    ask.java:270)
    [clientgen] at org.apache.tools.ant.Task.perform(Task.java:217)
    [clientgen] at org.apache.tools.ant.Target.execute(Target.java:164)
    [clientgen] atorg.apache.tools.ant.Target.performTasks(Target.java:182)
    [clientgen] atorg.apache.tools.ant.Project.executeTarget(Project.java:601)
    [clientgen] atorg.apache.tools.ant.Project.executeTargets(Project.java:560)
    [clientgen] at org.apache.tools.ant.Main.runBuild(Main.java:454)
    [clientgen] at org.apache.tools.ant.Main.start(Main.java:153)
    [clientgen] at org.apache.tools.ant.Main.main(Main.java:176)
    [clientgen] --------------- nested within: ------------------
    [clientgen] weblogic.webservice.util.WebServiceJarException: Couldnot
    load deployment
    descriptor - with nested exception:
    [clientgen] [weblogic.webservice.dd.DDProcessingException: Could not
    find>required>> attribute "type" for element <fault> (Line 28, Column 8)
    [clientgen] atweblogic.webservice.util.WebServiceWarFile.getWSDD(WebServiceWarFile.java:81
    [clientgen] atweblogic.ant.taskdefs.webservices.clientgen.EARClientGen.getWebServiceDD(EAR
    ClientGen.java:330)
    [clientgen] atweblogic.ant.taskdefs.webservices.clientgen.EARClientGen.run(EARClientGen.ja
    va:110)
    [clientgen] atweblogic.ant.taskdefs.webservices.clientgen.ClientGenTask.execute(ClientGenT
    ask.java:270)
    [clientgen] at org.apache.tools.ant.Task.perform(Task.java:217)
    [clientgen] at org.apache.tools.ant.Target.execute(Target.java:164)
    [clientgen] atorg.apache.tools.ant.Target.performTasks(Target.java:182)
    [clientgen] atorg.apache.tools.ant.Project.executeTarget(Project.java:601)
    [clientgen] atorg.apache.tools.ant.Project.executeTargets(Project.java:560)
    [clientgen] at org.apache.tools.ant.Main.runBuild(Main.java:454)
    [clientgen] at org.apache.tools.ant.Main.start(Main.java:153)
    [clientgen] at org.apache.tools.ant.Main.main(Main.java:176)
    BUILD FAILED
    Anybody has any ideas?
    Thanks much,
    sami

  • Web service - XML not in format

    Hi,
      i created one web service which has function returning integer. i called this WS in BLS. I saved response of function in xml file using XML saver action block. But i cant read this file in query template. i.e it is not in format. it shows as
    <?xml version="1.0" encoding="UTF-8" ?>
    - <ns:col2Response xmlns:ns="http://ws.apache.org/axis2/xsd">
      <ns:return>32.0</ns:return>
      </ns:col2Response>
    in query template, test page doesnt show anything.
    what is the problem? how to solve it as to read thru query template?
    -senthil

    Senthil,
    There is no problem. Your web service is just returning the response as you have defined it. If you define your response in the Rowsets/Rowset/Row format then it should be fine to display in a query template.
    Otherwise, as it stands you would just have to create an IllumDoc and map the data from your web service call to it and then it will display. Just make sure to map the outputXML from the IllumDoc to a transaction property Ouput of XML data type.

  • Web-services.xml, dtd or xml schema?

    Hi there!
    I'm just curious to know whether there exists any dtd or schema
    for wls 7.x web-services.xml file?
    The diagram in
    http://e-docs.bea.com/wls/docs70/webserv/wsp.html#1001373
    shows one order for the contents of the web-service element,
    whereas the examples reflect another (being types,
    type-mapping, components, operations).
    Why are the example web-services.xml not tagged with the
    information of the location of the schema?
    Of course building web-services.xml manually is not the first
    thing to try, but since the contents are documented and since
    it gives the best control over the process, it makes sense.

    Hello,
    There's not one. The primary vision for the web-services.xml file
    was/is to be a linkage between wsdl/soap and the j2ee environment. It
    was not intended to be a starting point for building an application, but
    a semi-private intermediary.
    HTHs,
    Bruce
    Toni Nykanen wrote:
    >
    Hi there!
    I'm just curious to know whether there exists any dtd or schema
    for wls 7.x web-services.xml file?
    The diagram in
    http://e-docs.bea.com/wls/docs70/webserv/wsp.html#1001373
    shows one order for the contents of the web-service element,
    whereas the examples reflect another (being types,
    type-mapping, components, operations).
    Why are the example web-services.xml not tagged with the
    information of the location of the schema?
    Of course building web-services.xml manually is not the first
    thing to try, but since the contents are documented and since
    it gives the best control over the process, it makes sense.

  • Web-services.xml, why is security not enforced (format improved)

    <pre>
    Hi,
    Sorry about the lack of formatting in previous post.
    Running weblogic 8.1SP5.
    Im having problems with the message style security, it doesn't seem to be enforced by weblogic.
    The intention of web-services.xml (below) is that weblogic should authenticate the user according to credential info in the request header.
    The console webservice testpage seem OK, it has user and password input boxes. But invocations fail with an obscure message involving
    AssertionError: Bad password type: wsse:PasswordText
    A simple Axis based client (see below) with no security tags in the header can invoke the service with no problems, would expect it to fail on athentication.
    Did I miss something in web-services.xml or does something general need to be set up in the server for this to work as intended?
    I am pulling my hair out on this one so any help will be greatly appreciated.
    Rgds.
    web-services.xml looks like this:
    <security>
    <user>
    <name>test_user</name>
    <password>test_password</password>
    </user>
    <spec:SecuritySpec xmlns:spec="http://www.openuri.org/2002/11/wsse/spec"
    Namespace="http://schemas.xmlsoap.org/ws/2002/07/secext"
    Id="_mySpec">
    <spec:UsernameTokenSpec xmlns:wsse="http://schemas.xmlsoap.org/ws/2002/07/secext"
    PasswordType="wsse:PasswordText">
    </spec:UsernameTokenSpec>
    </spec:SecuritySpec>
    </security>
    <components>
    <stateless-ejb name="CaseConverter">
    <jndi-name path="CaseConverter"></jndi-name>
    </stateless-ejb>
    </components>
    <operations xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <operation
    component="CaseConverter"
    name="convertToUpper"
    method="convertToUpper"
    in-security-spec="_mySpec"
    >
    The client looks like this (Axis based):
    URL endpoint = new URL("http://127.0.0.1:7001/WebModule/CaseConverter");
    Service service = new Service();
    Call call = (Call)service.createCall();
    call.setTargetEndpointAddress(endpoint);
    call.setOperationName("convertToUpper");
    call.addParameter("inputString",XMLType.XSD_STRING,ParameterMode.IN);
    call.setReturnType(XMLType.XSD_STRING);
    String result = (String) call.invoke(new Object[] { "hello!" });
    System.out.println("Result: " + result);
    </pre>

    Hi
    I am also getting the same error. if anybody has some solution, pl. tell us

  • Web-services.xml, why is security not enforced

    Hi,
    Running weblogic 8.1SP5.
    Im having problems with the message style security, it doesn't seem to be enforced by weblogic.
    The intention of web-services.xml (below) is that weblogic should authenticate the user according to credential info in the request header.
    The console webservice testpage seem OK, it has user and password input boxes. But invocations fail with an obscure message involving
    <b>AssertionError: Bad password type: wsse:PasswordText</b>
    A simple Axis based client (see below) with no security tags in the header can invoke the service with no problems, would expect it to fail on athentication.
    Did I miss something in web-services.xml or does something general need to be set up in the server for this to work as intended?
    I am pulling my hair out on this one so any help will be greatly appreciated.
    Rgds.
    web-services.xml looks like this:
    <security>
    <user>
    <name>test_user</name>
    <password>test_password</password>
    </user>
    <spec:SecuritySpec xmlns:spec="http://www.openuri.org/2002/11/wsse/spec"
    Namespace="http://schemas.xmlsoap.org/ws/2002/07/secext"
    Id="_mySpec">
    <spec:UsernameTokenSpec xmlns:wsse="http://schemas.xmlsoap.org/ws/2002/07/secext"
    PasswordType="wsse:PasswordText">
    </spec:UsernameTokenSpec>
    </spec:SecuritySpec>
    </security>
    <components>
    <stateless-ejb name="CaseConverter">
    <jndi-name path="CaseConverter"></jndi-name>
    </stateless-ejb>
    </components>
    <operations xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <operation
    component="CaseConverter"
    name="convertToUpper"
    method="convertToUpper"
    in-security-spec="_mySpec"
    >
    The client looks like this (Axis based):
    URL endpoint = new URL("http://127.0.0.1:7001/WebModule/CaseConverter");
    Service service = new Service();
    Call call = (Call)service.createCall();
    call.setTargetEndpointAddress(endpoint);
    call.setOperationName("convertToUpper");
    call.addParameter("inputString",XMLType.XSD_STRING,ParameterMode.IN);
    call.setReturnType(XMLType.XSD_STRING);
    String result = (String) call.invoke(new Object[] { "hello!" });
    System.out.println("Result: " + result);
    .......

    Hi
    I am also getting the same error. if anybody has some solution, pl. tell us

  • How to generate param-prefix in web-services.xml

    Hello I am using source2wsdd to generate my WSDL and my web-services.xml. For sake
    of interoperability I would like to have the type param-prefix in the web-services.xml
    file. From my Bean class what kind of javadoc comments would help me generate
    the type param-prefix ?
    I also would like the location="header" in the param list.
    Thanks,
    Aswin.
    <param xmlns:param-prefix="http://tempuri.org/"
    type="param-prefix:SOAPCredentials"
    location="header"
    class-name="com.xyz.webservices.SOAPCredentials"
    name="SOAPCredentials"
    style="in">
    </param>
    <return-param xmlns:param-prefix="http://tempuri.org/"
    type="param-prefix:GetFileProfileInformationResponse"
    class-name="com.xyz.webservices.GetFileProfileInformationResponse"
    name="parameters">
    </return-param>
    </params>

    Please try this:
    * @wlws:part p_SOAPAuthToken location="header"
    * type="typeNS:p_SOAPAuthToken"
    * class-name="com.xyz.webservices.SOAPAuthToken"
    * style="inout"
    * xmlns:typeNS=http://namespace/of/the/type
    * @wlws:part p_SOAPCredentials location="header"
    * type="typeNS:p_SOAPCredentials"
    * class-name="com.xyz.webservices.SOAPCredentials"
    * style="in"
    * xmlns:typeNS=http://namespace/of/the/type
    * @ejbgen:remote-method
    public void login(SOAPAuthToken p_SOAPAuthToken,
    SOAPCredentials p_SOAPCredentials)
    I did not try this one out. So i can only hope that it works.
    Regards,
    -manoj
    http://manojc.com
    "Aswin Dinakar" <[email protected]> wrote in message
    news:40aeeb5d$1@mktnews1...
    >
    I tried this
    * @wlws:part p_SOAPAuthToken location="header"
    * @wlws:part p_SOAPAuthToken type="param-prefix:p_SOAPAuthToken"
    * @wlws:part p_SOAPAuthTokenclass-name="com.xyz.webservices.SOAPAuthToken"
    * @wlws:part p_SOAPAuthToken style="inout"
    * @wlws:part p_SOAPCredentials location="header"
    * @wlws:part p_SOAPCredentials type="param-prefix:p_SOAPCredentials"
    * @wlws:part p_SOAPCredentialsclass-name="com.xyz.webservices.SOAPCredentials"
    * @wlws:part p_SOAPCredentials style="in"
    * @ejbgen:remote-method
    public void login(SOAPAuthToken p_SOAPAuthToken,
    SOAPCredentials p_SOAPCredentials)
    and I got the following error -
    [source2wsdd] source2wsdd: In doclet classweblogic.webservice.tools.ddgen.Servi
    ceGen, method start has thrown an exceptionjava.lang.reflect.InvocationTargetE
    xception
    [source2wsdd] weblogic.xml.stream.XMLStreamException: Attribute QNamevalue "par
    am-prefix:p_SOAPAuthToken" does not map to a prefix that is in scope
    [source2wsdd] atweblogic.webservice.dd.NSAttribute.getValueAsXMLName(NSAttrib
    ute.java:45)
    [source2wsdd] atweblogic.webservice.dd.DDLoader.processParamElement(DDLoader.
    java:1252)
    "manoj cheenath" <[email protected]> wrote:
    Check out this example:
    http://manojc.com/?sample3
    You can find more details regarding the tags here:
    http://manojc.com/tutorial/sample3/source2wsdd.html
    Regards,
    -manoj
    http://manojc.com
    "Aswin D" <[email protected]> wrote in message
    news:[email protected]...
    Hello I am using source2wsdd to generate my WSDL and my
    web-services.xml.
    For sake
    of interoperability I would like to have the type param-prefix inthe
    web-services.xml
    file. From my Bean class what kind of javadoc comments would help megenerate
    the type param-prefix ?
    I also would like the location="header" in the param list.
    Thanks,
    Aswin.
    <param xmlns:param-prefix="http://tempuri.org/"
    type="param-prefix:SOAPCredentials"
    location="header"
    class-name="com.xyz.webservices.SOAPCredentials"
    name="SOAPCredentials"
    style="in">
    </param>
    <return-param xmlns:param-prefix="http://tempuri.org/"
    type="param-prefix:GetFileProfileInformationResponse"
    class-name="com.xyz.webservices.GetFileProfileInformationResponse"
    name="parameters">
    </return-param>
    </params>

  • Error while inluding xsd:whiteSpace in web-services.xml

    Hi,
    i am trying to allow the xml attribute values to preserve the whiteSpace characters(tabs, line feeds, carriage returns etc...)
    In web-services.xml i am adding
    <xsd:complexContent>
    <xsd:restriction base="xsd:string">
    <xsd:attribute name="address">
    <xsd:whiteSpace value="preserve"/>
    </xsd:attribute>
    </xsd:restriction>
    </xsd:complexContent>
    But i am getting a run time exception as
    [weblogic.xml.schema.model.parser.XSDParseException: invalid element "xsd:whiteSpace" AT line 0, column 0: <['http://www.w3.org/2001/XMLSchema']:xsd:whiteSpace value="preserve">]
    am i doing in a correct way?
    Please suggest me.
    Thanks
    subba.

    weblogic server doesn't support some of the xsd features.
    WebLogic Server does not support the following XML Schema features:
    ?     Complex data type inheritance by restriction
    ?     Union simple data types
    ?     References to named model groups
    ?     Nested content models in a single complex type
    ?     Redefinition of declarations
    ?     Identity constraints (key, keyref, unique)
    ?     Nested XSD model groups with other content models at the same level.
    There cannot be a modelgroup (say sequence) that contains another nested modelgroup (say choice), and a content element (say element). So, if a nested modelgroup is required, make sure that it contains only another model group and no other content element.
    ?     Wildcards
    but i didn't understand why its giving error for whiteSpace.
    Can someone reply to this please,, its urgent for me.
    thanks
    subba.

  • Urgent!! PL/SQL web service can not get output param in BPEL

    OC4J 10.1.2 generate PL/SQL web service can not get output param can not get output param in BPEL when call a pl/sql webservice.
    wsdl as follow:
    <types>
    <schema targetNamespace="http://db.func.getqf/COMMON.xsd" xmlns:tns="http://db.func.getqf/COMMON.xsd" xmlns="http://www.w3.org/2001/XMLSchema" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <complexType name="db_func_getqf_COMMONUser_getqf_Out">
    <all>
    <element name="pnqfysOut" type="xsd:decimal"/>
    <element name="pnzqfOut" type="xsd:decimal"/>
    </all>
    </complexType>
    </schema>
    </types>
    <message name="getqfOutput">
    <part name="return" type="xsd1:db_func_getqf_COMMONUser_getqf_Out"/>
    </message>

    the wsdl which generate by OC4J is as follows:
    <?xml version="1.0" ?>
    - <definitions name="COMMON" targetNamespace="http://db.func.getqf/COMMON.wsdl" xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:tns="http://db.func.getqf/COMMON.wsdl" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd1="http://db.func.getqf/COMMON.xsd">
    <documentation>WSDL for Service: COMMON, generated by Oracle WSDL toolkit (version: 1.1)</documentation>
    - <types>
    - <schema attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://db.func.getqf/COMMON.xsd" xmlns:tns="http://db.func.getqf/COMMON.xsd" xmlns="http://www.w3.org/2001/XMLSchema" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    - <complexType name="db_func_getqf_COMMONUser_getqf_Out">
    - <all>
    <element name="pnqfysOut" type="xsd:decimal" />
    <element name="pnzqfOut" type="xsd:decimal" />
    </all>
    </complexType>
    </schema>
    </types>
    - <message name="getqfOutput">
    <part name="return" type="xsd1:db_func_getqf_COMMONUser_getqf_Out" />
    </message>
    - <message name="getqfInput">
    <part name="param0" type="xsd:string" />
    </message>
    - <portType name="COMMONPortType">
    - <operation name="getqf">
    <input message="tns:getqfInput" />
    <output message="tns:getqfOutput" />
    </operation>
    </portType>
    - <binding name="COMMONBinding" type="tns:COMMONPortType">
    <soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="rpc" />
    - <operation name="getqf">
    <soap:operation soapAction="urn:db-func-getqf-COMMON/getqf" />
    - <input>
    <soap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:db-func-getqf-COMMON" />
    </input>
    - <output>
    <soap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:db-func-getqf-COMMON" />
    </output>
    </operation>
    </binding>
    - <service name="COMMON">
    - <port name="COMMONPort" binding="tns:COMMONBinding">
    <soap:address location="http://localhost:9700/plsqlgetqf/getqf" />
    </port>
    </service>
    </definitions>

  • Web-services.xml for EJB component and SOAP Message Handler Chain

    I have used the following example for my own web service with EJB component and SOAP
    Message Handler Chain:
    http://e-docs.bea.com/wls/docs70/webServices/dd.html#1058208
    I have a deployment error:
    javax.naming.NameNotFoundException: Unable to resolve 'app/ejb/DocumentService.j
    ar#DocumentService/home' Resolved: 'app/ejb' Unresolved:'DocumentService.jar#Doc
    umentService' ; remaining name 'DocumentService.jar#DocumentService/home'
    In attachement is the ear file.
    Is there a problem in web-services.xml?
    Thanks
    [ws_dox_sdi.ear]

    It works. Thanks,
    Ioana
    "Neal Yin" <[email protected]> wrote:
    The error means your EJB is not deployed.
    Adding a EJB module to your application.xml file of the ear should fixe
    it.
    <application>
    <display-name />
    <module>
    <web>
    <web-uri>dox_sdi.war</web-uri>
    </web>
    </module>
    <module>
    <ejb>DocumentService.jar</ejb>
    </module>
    </application>
    "Ioana Meissner" <[email protected]> wrote in message
    news:3cf640cc$[email protected]..
    I have used the following example for my own web service with EJBcomponent and SOAP
    Message Handler Chain:
    http://e-docs.bea.com/wls/docs70/webServices/dd.html#1058208
    I have a deployment error:
    javax.naming.NameNotFoundException: Unable to resolve'app/ejb/DocumentService.j
    ar#DocumentService/home' Resolved: 'app/ejb'Unresolved:'DocumentService.jar#Doc
    umentService' ; remaining name 'DocumentService.jar#DocumentService/home'
    In attachement is the ear file.
    Is there a problem in web-services.xml?
    Thanks

  • Updating the web-services.xml for WS-Security

    If I wanted to change my webservice from encryption of both the request and response to just encryption of the request how do I manually change the web-services.xml file ??? Do I have to un-archive the ear and re-archive the ear everytime I want to make security changes to the web-services.xml file ?

    It works. Thanks,
    Ioana
    "Neal Yin" <[email protected]> wrote:
    The error means your EJB is not deployed.
    Adding a EJB module to your application.xml file of the ear should fixe
    it.
    <application>
    <display-name />
    <module>
    <web>
    <web-uri>dox_sdi.war</web-uri>
    </web>
    </module>
    <module>
    <ejb>DocumentService.jar</ejb>
    </module>
    </application>
    "Ioana Meissner" <[email protected]> wrote in message
    news:3cf640cc$[email protected]..
    I have used the following example for my own web service with EJBcomponent and SOAP
    Message Handler Chain:
    http://e-docs.bea.com/wls/docs70/webServices/dd.html#1058208
    I have a deployment error:
    javax.naming.NameNotFoundException: Unable to resolve'app/ejb/DocumentService.j
    ar#DocumentService/home' Resolved: 'app/ejb'Unresolved:'DocumentService.jar#Doc
    umentService' ; remaining name 'DocumentService.jar#DocumentService/home'
    In attachement is the ear file.
    Is there a problem in web-services.xml?
    Thanks

  • Web-services.xml  handler chain

    Hi All,
    My question is this. I use servicegen ant task to generate the web-services.xml
    file,
    then I open the .ear file using winzip and edit the web-services.xml file to include
    the handler-chain information. I have included the following information :
    <handler-chains>
    <handler-chain name="myChain">
    <handler class-name="com.whatever.core.sec.iec.ejb.IECSOAPHandler">
    <init-params>
    <init-param name="logDirectory" value="C:/temp" />
    <init-param name="severityLevel" value="verbose" />
    </init-params>
    </handler>
    </handler-chain>
    </handler-chains>
    and then I include the following in the operation tag:
    <operation method="batchResponseToPSS([B)" component="ejbcomp0" name="batchResponseToPSS"
    handler-chain="myChain">
    and the also following
          <operation method="onlineResponseToPSS([B)" component="ejbcomp0" name="onlineResponseToPSS"
    handler-chain="myChain">
    Without the handler-chains element my app works fine.
    My whole web-sercvices.xml is located at following location:
    http://newsgroups.bea.com/cgi-bin/dnewsweb?cmd=article&group=weblogic.developer.interest.webservices&item=3921&utag=
    Any insight will be appreciated.
    Thanks
    ---Radhe
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    I am still not clear what error you are getting.
    1. Are you saying that the handler is not getting
    called?
    2. or you are not able to invoke the web service
    at all?
    If it is 1 check the web-service.xml file of the ear
    deployed. Make sure that your change is not overwritten
    by servicegen.
    If it is 2 then check the URL of the web service in
    web-service.xml file and use a browser to get to
    that URL.
    Regards,
    -manoj
    http://manojc.com
    "Radhe" <[email protected]> wrote in message
    news:[email protected]...
    >
    Manoj,
    Thanks for your reply. When I bring up the WLS, from the messages on theconsole,
    it comes-up pretty cleanly. Theare are no error messages.
    I looked into log files and their is nothing. This has surprised me.
    I worked with some of my friends and they are clueless. I never thoughtto just
    read SOAP Headers, that I have to go through so much pain.
    Also part of my web-services.xml file is generated through servicegen,then I
    crack open the .ear file strip the web-services.xml file, edit it and putit back.
    >
    IF there is some error I would have fixed it.
    Does handler-chains in web-services.xml work, or it is some fiction, BEAmade
    up. I am clueless where I am screwing it up.
    Thanks
    ---Radhe
    "manoj cheenath" <[email protected]> wrote:
    Can you please post the error message?
    This example may also help you:
    http://www.manojc.com/?sample4
    Regards,
    -manoj
    http://manojc.com
    "Radhe" <[email protected]> wrote in message
    news:[email protected]...
    Hi All,
    My question is this. I use servicegen ant task to generate theweb-services.xml
    file,
    then I open the .ear file using winzip and edit the web-services.xmlfile
    to include
    the handler-chain information. I have included the following
    information
    <handler-chains>
    <handler-chain name="myChain">
    <handler
    class-name="com.whatever.core.sec.iec.ejb.IECSOAPHandler">
    <init-params>
    <init-param name="logDirectory" value="C:/temp" />
    <init-param name="severityLevel" value="verbose" />
    </init-params>
    </handler>
    </handler-chain>
    </handler-chains>
    and then I include the following in the operation tag:
    <operation method="batchResponseToPSS([B)" component="ejbcomp0"
    name="batchResponseToPSS"> >> handler-chain="myChain">> >>> >> and the also following> >>> >>       <operation method="onlineResponseToPSS([B)" component="ejbcomp0"> >name="onlineResponseToPSS"> >> handler-chain="myChain">> >>> >> Without the handler-chains element my app works fine.> >>> >> My whole web-sercvices.xml is located at following location:> >>> >>>>http://newsgroups.bea.com/cgi-bin/dnewsweb?cmd=article&group=weblogic.developer.interest.webservices&item=3921&utag=> >>> >>> >> Any insight will be appreciated.> >>> >> Thanks> >> ---Radhe> >> >>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Web-services.xml: cannot set "charset" attribute for alternative encoding

    Hi,
    the definition of the charset attribute in tag web-service in a web-services.xml
    descriptor gets lost, when deploying a web-service.
    Sample:
    Before deployment I defined:
    <web-service charset="ISO-8859-1" useSOAP12="false" targetNamespace="http://www.itpearls.com/unity/SubscriberData"
    name="WebSubscriberDataCollector" style="rpc" uri="/WebSubscriberDataCollector">
    After deployment the console states:
    <web-service jmsUri="ISO-8859-1" useSOAP12="false" exposeWSDL="true" targetNamespace="http://www.itpearls.com/unity/SubscriberData"
    name="WebSubscriberDataCollector" style="rpc" uri="/WebSubscriberDataCollector">
    So the value "ISO-8859-1" changed his master :-(
    I consider this a bug. Is there a workaround for the charset definition of an
    individual web-service?
    Thanks for an comments
    Manfred

    Hi Neal
    my server's locale is not en_US. The locale command delivers:
    $ locale
    LANG=de_CH.ISO8859-1
    LC_CTYPE="de_CH.ISO8859-1"
    LC_NUMERIC="de_CH.ISO8859-1"
    LC_TIME="de_CH.ISO8859-1"
    LC_COLLATE="de_CH.ISO8859-1"
    LC_MONETARY="de_CH.ISO8859-1"
    LC_MESSAGES="de_CH.ISO8859-1"
    LC_ALL=de_CH.ISO8859-1
    but the Weblogic Server remains stubborn on all possibilities according to http://e-docs.bea.com/wls/docs81/webserv/i18n.html#1069538
    and keeps complaining:
    java.io.CharConversionException: Malformed UTF-8 char -- is an XML encoding declaration
    missing?
    My analysis: The Weblogic server seems to expect a UTF-8 compliant stream (due
    to the current user.language property set to "de") regardless of the chosen configuration
    possibilities proposed on the above mentioned link page.
    Q: is this bug related to CR105388 on http://e-docs.bea.com/wls/docs81/notes/issues.html
    Now I urgently need a workaround to make Umlaute contained in a web service request
    working.
    Thanks for any help
    Manfred
    "Manfred Sturm" <[email protected]> wrote:
    >
    Hi Neal
    OK, typo. But it doesn't work. I get the console output:
    java.io.CharConversionException: Malformed UTF-8 char -- is an XML encoding
    declaration
    missing?
    plus I get following stack trace from the web-service client:
    javax.xml.soap.SOAPException: Failed to read a xml element from
    Vorname_aou_AOU091 Name_aou_AOU091 Ort_äou_AOU091 091A 1091 Strasse_aou_AOU091
    bbcs adsl sample string
    at weblogic.webservice.tools.pagegen.SampleInstance.getJavaObject(SampleInstance.java:139)
    at weblogic.webservice.server.servlet.ServletBase.getJavaParams(ServletBase.java:378)
    at weblogic.webservice.server.servlet.ServletBase.invokeMultiOutput(ServletBase.java:347)
    at weblogic.webservice.server.servlet.ServletBase.invokeOperation(ServletBase.java:306)
    at weblogic.webservice.server.servlet.WebServiceServlet.invokeOperation(WebServiceServlet.java:312)
    at weblogic.webservice.server.servlet.ServletBase.handleGet(ServletBase.java:272)
    at weblogic.webservice.server.servlet.ServletBase.doGet(ServletBase.java:154)
    at weblogic.webservice.server.servlet.WebServiceServlet.doGet(WebServiceServlet.java:232)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1053)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:387)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:305)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6310)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:317)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)
    at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3622)
    at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2569)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
    (server's locale is en_US)
    Alternatively, when using "-Dweblogic.webservice.i18n.charset=ISO-8859-1"
    in
    I get the console output:
    <Oct 7, 2003 11:46:05 AM MEST> <Warning> <Management> <BEA-141087> <Unrecognized
    property: webservice.i18n.charset.>
    which results in the above stack trace when invoking on the web service.
    I still need a workaround within weblogic server. I cannot change the
    Solaris
    server's locale settings.
    Thanks for an comments
    Manfred
    "Neal Yin" <[email protected]> wrote:
    Hi Manfred,
    There is a typo in code. But this should NOT affect any functionality
    (charset attribute is working). Please contact support for a patch.
    Thanks,
    -Neal
    "Manfred Sturm" <[email protected]> wrote in message
    news:[email protected]...
    Hi,
    the definition of the charset attribute in tag web-service in aweb-services.xml
    descriptor gets lost, when deploying a web-service.
    Sample:
    Before deployment I defined:
    <web-service charset="ISO-8859-1" useSOAP12="false"
    targetNamespace="http://www.itpearls.com/unity/SubscriberData"
    name="WebSubscriberDataCollector" style="rpc"uri="/WebSubscriberDataCollector">
    After deployment the console states:
    <web-service jmsUri="ISO-8859-1" useSOAP12="false" exposeWSDL="true"
    targetNamespace="http://www.itpearls.com/unity/SubscriberData"
    name="WebSubscriberDataCollector" style="rpc"uri="/WebSubscriberDataCollector">
    So the value "ISO-8859-1" changed his master :-(
    I consider this a bug. Is there a workaround for the charset definitionof
    an
    individual web-service?
    Thanks for an comments
    Manfred

  • WSUS not working completely, no MMC connect, all web services are not working

    Hello all,
    I have a problem not sure what causing it or what is the source of it as I am not into WSUS that much...
    THe status is as follows:
    I have 1 server 2008 sp2 RTM x64, I had WSUS 3.0 SP2 on it since a while, it was working fine until a week ago, when I started receiving the below messages in the event viewer
    I have spent too much time trying to trace or troubleshoot this issue, but all I got was to check the registry and check permissions on the temp folder and other folders, I have done complete removal with the database for the old WSUS and reinstalled it
    again but I got the same problem
    Nothing strange and no problems happened on the server perior to this issue, it just happened...
    Any help will be appreciated
    Regards
    ============== MSG 1 ==============
    Log Name:      Application
    Source:        Windows Server Update Services
    Date:          9/21/2011 1:52:54 PM
    Event ID:      7053
    Task Category: None
    Level:         Error
    Keywords:      Classic
    User:          N/A
    Computer:      APP-SVR.DOMAIN.local
    Description:
    The WSUS administration console has encountered an unexpected error. This may be a transient error; try restarting the administration console. If this error persists,
    Try removing the persisted preferences for the console by deleting the wsus file under %appdata%\Microsoft\MMC\.
    System.InvalidOperationException -- Client found response content type of 'text/html; charset=utf-8', but expected 'text/xml'.
    The request failed with the error message:
    <html>
        <head>
            <title>Security Exception</title>
            <style>
             body {font-family:"Verdana";font-weight:normal;font-size: .7em;color:black;}
             p {font-family:"Verdana";font-weight:normal;color:black;margin-top: -5px}
             b {font-family:"Verdana";font-weight:bold;color:black;margin-top: -5px}
             H1 { font-family:"Verdana";font-weight:normal;font-size:18pt;color:red }
             H2 { font-family:"Verdana";font-weight:normal;font-size:14pt;color:maroon }
             pre {font-family:"Lucida Console";font-size: .9em}
             .marker {font-weight: bold; color: black;text-decoration: none;}
             .version {color: gray;}
             .error {margin-bottom: 10px;}
             .expandable { text-decoration:underline; font-weight:bold; color:navy; cursor:hand; }
            </style>
        </head>
        <body bgcolor="white">
                <span><H1>Server Error in '/ApiRemoting30' Application.<hr width=100% size=1 color=silver></H1>
                <h2> <i>Security Exception</i> </h2></span>
                <font face="Arial, Helvetica, Geneva, SunSans-Regular, sans-serif ">
                <b> Description: </b>The application attempted to perform an operation not allowed by the security policy.  To grant this application the required permission please contact
    your system administrator or change the application's trust level in the configuration file.
                <br><br>
                <b> Exception Details: </b>System.Security.SecurityException: That assembly does not allow partially trusted callers.<br><br>
                <b>Source Error:</b> <br><br>
                <table width=100% bgcolor="#ffffcc">
                   <tr>
                      <td>
                          <code>
    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.</code>
                      </td>
                   </tr>
                </table>
                <br>
                <b>Stack Trace:</b> <br><br>
                <table width=100% bgcolor="#ffffcc">
                   <tr>
                      <td>
                          <code><pre>
    [SecurityException: That assembly does not allow partially trusted callers.]
       ASP.global_asax..ctor() +0
    </pre></code>
                      </td>
                   </tr>
                </table>
                <br>
                <hr width=100% size=1 color=silver>
                <b>Version Information:</b> Microsoft .NET Framework Version:2.0.50727.4214; ASP.NET Version:2.0.50727.4209
                </font>
        </body>
    </html>
    <!--
    [SecurityException]: That assembly does not allow partially trusted callers.
       at ASP.global_asax..ctor()
    [TargetInvocationException]: Exception has been thrown by the target of an invocation.
       at System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandle& ctor, Boolean& bNeedSecurityCheck)
       at System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean fillCache)
       at System.RuntimeType.CreateInstanceImpl(Boolean publicOnly, Boolean skipVisibilityChecks, Boolean fillCache)
       at System.Activator.CreateInstance(Type type, Boolean nonPublic)
       at System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes)
       at System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context)
       at System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext)
    [HttpException]: Exception has been thrown by the target of an invocation.
       at System.Web.HttpRuntime.FirstRequestInit(HttpContext context)
       at System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context)
       at System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context)
    -->
    Source
    Microsoft.UpdateServices.Administration
    Stack Trace:
       at Microsoft.UpdateServices.Administration.AdminProxy.CreateUpdateServer(Object[] args)
       at Microsoft.UpdateServices.Administration.AdminProxy.GetUpdateServer()
       at Microsoft.UpdateServices.UI.AdminApiAccess.AdminApiTools.GetUpdateServer()
       at Microsoft.UpdateServices.UI.SnapIn.Wizards.OOBE.OOBEWizard.get_AdminApiTools()
       at Microsoft.UpdateServices.UI.SnapIn.Wizards.OOBE.OOBEWizard.get_ServerState()
       at Microsoft.UpdateServices.UI.SnapIn.Wizards.OOBE.OOBEWizard.SetNavigationItemEnabledStates()
       at Microsoft.UpdateServices.UI.SnapIn.Wizards.OOBE.OOBEWizard.OOBEWizardInitialize()
    Event Xml:
    <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
      <System>
        <Provider Name="Windows Server Update Services" />
        <EventID Qualifiers="0">7053</EventID>
        <Level>2</Level>
        <Task>0</Task>
        <Keywords>0x80000000000000</Keywords>
        <TimeCreated SystemTime="2011-09-21T10:52:54.000Z" />
        <EventRecordID>884368</EventRecordID>
        <Channel>Application</Channel>
        <Computer>APP-SVR.DOMAIN.local</Computer>
        <Security />
      </System>
      <EventData>
        <Data>The WSUS administration console has encountered an unexpected error. This may be a transient error; try restarting the administration console. If this error persists,
    Try removing the persisted preferences for the console by deleting the wsus file under %appdata%\Microsoft\MMC\.
    System.InvalidOperationException -- Client found response content type of 'text/html; charset=utf-8', but expected 'text/xml'.
    The request failed with the error message:
    &lt;html&gt;
        &lt;head&gt;
            &lt;title&gt;Security Exception&lt;/title&gt;
            &lt;style&gt;
             body {font-family:"Verdana";font-weight:normal;font-size: .7em;color:black;}
             p {font-family:"Verdana";font-weight:normal;color:black;margin-top: -5px}
             b {font-family:"Verdana";font-weight:bold;color:black;margin-top: -5px}
             H1 { font-family:"Verdana";font-weight:normal;font-size:18pt;color:red }
             H2 { font-family:"Verdana";font-weight:normal;font-size:14pt;color:maroon }
             pre {font-family:"Lucida Console";font-size: .9em}
             .marker {font-weight: bold; color: black;text-decoration: none;}
             .version {color: gray;}
             .error {margin-bottom: 10px;}
             .expandable { text-decoration:underline; font-weight:bold; color:navy; cursor:hand; }
            &lt;/style&gt;
        &lt;/head&gt;
        &lt;body bgcolor="white"&gt;
                &lt;span&gt;&lt;H1&gt;Server Error in '/ApiRemoting30' Application.&lt;hr width=100% size=1 color=silver&gt;&lt;/H1&gt;
                &lt;h2&gt; &lt;i&gt;Security Exception&lt;/i&gt; &lt;/h2&gt;&lt;/span&gt;
                &lt;font face="Arial, Helvetica, Geneva, SunSans-Regular, sans-serif "&gt;
                &lt;b&gt; Description: &lt;/b&gt;The application attempted to perform an operation not allowed by the security policy.  To grant this application the required permission
    please contact your system administrator or change the application's trust level in the configuration file.
                &lt;br&gt;&lt;br&gt;
                &lt;b&gt; Exception Details: &lt;/b&gt;System.Security.SecurityException: That assembly does not allow partially trusted callers.&lt;br&gt;&lt;br&gt;
                &lt;b&gt;Source Error:&lt;/b&gt; &lt;br&gt;&lt;br&gt;
                &lt;table width=100% bgcolor="#ffffcc"&gt;
                   &lt;tr&gt;
                      &lt;td&gt;
                          &lt;code&gt;
    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.&lt;/code&gt;
                      &lt;/td&gt;
                   &lt;/tr&gt;
                &lt;/table&gt;
                &lt;br&gt;
                &lt;b&gt;Stack Trace:&lt;/b&gt; &lt;br&gt;&lt;br&gt;
                &lt;table width=100% bgcolor="#ffffcc"&gt;
                   &lt;tr&gt;
                      &lt;td&gt;
                          &lt;code&gt;&lt;pre&gt;
    [SecurityException: That assembly does not allow partially trusted callers.]
       ASP.global_asax..ctor() +0
    &lt;/pre&gt;&lt;/code&gt;
                      &lt;/td&gt;
                   &lt;/tr&gt;
                &lt;/table&gt;
                &lt;br&gt;
                &lt;hr width=100% size=1 color=silver&gt;
                &lt;b&gt;Version Information:&lt;/b&gt; Microsoft .NET Framework Version:2.0.50727.4214; ASP.NET Version:2.0.50727.4209
                &lt;/font&gt;
        &lt;/body&gt;
    &lt;/html&gt;
    &lt;!--
    [SecurityException]: That assembly does not allow partially trusted callers.
       at ASP.global_asax..ctor()
    [TargetInvocationException]: Exception has been thrown by the target of an invocation.
       at System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean&amp; canBeCached, RuntimeMethodHandle&amp; ctor, Boolean&amp; bNeedSecurityCheck)
       at System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean fillCache)
       at System.RuntimeType.CreateInstanceImpl(Boolean publicOnly, Boolean skipVisibilityChecks, Boolean fillCache)
       at System.Activator.CreateInstance(Type type, Boolean nonPublic)
       at System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes)
       at System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context)
       at System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext)
    [HttpException]: Exception has been thrown by the target of an invocation.
       at System.Web.HttpRuntime.FirstRequestInit(HttpContext context)
       at System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context)
       at System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context)
    --&gt;
    Source
    Microsoft.UpdateServices.Administration
    Stack Trace:
       at Microsoft.UpdateServices.Administration.AdminProxy.CreateUpdateServer(Object[] args)
       at Microsoft.UpdateServices.Administration.AdminProxy.GetUpdateServer()
       at Microsoft.UpdateServices.UI.AdminApiAccess.AdminApiTools.GetUpdateServer()
       at Microsoft.UpdateServices.UI.SnapIn.Wizards.OOBE.OOBEWizard.get_AdminApiTools()
       at Microsoft.UpdateServices.UI.SnapIn.Wizards.OOBE.OOBEWizard.get_ServerState()
       at Microsoft.UpdateServices.UI.SnapIn.Wizards.OOBE.OOBEWizard.SetNavigationItemEnabledStates()
       at Microsoft.UpdateServices.UI.SnapIn.Wizards.OOBE.OOBEWizard.OOBEWizardInitialize()</Data>
      </EventData>
    </Event>
    ============== MSG 2 ==============
    Log Name:      Application
    Source:        Windows Server Update Services
    Date:          9/21/2011 1:53:01 PM
    Event ID:      13051
    Task Category: 6
    Level:         Warning
    Keywords:      Classic
    User:          N/A
    Computer:      APP-SVR.DOMAIN.local
    Description:
    No client computers have ever contacted the server.
    Event Xml:
    <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
      <System>
        <Provider Name="Windows Server Update Services" />
        <EventID Qualifiers="0">13051</EventID>
        <Level>3</Level>
        <Task>6</Task>
        <Keywords>0x80000000000000</Keywords>
        <TimeCreated SystemTime="2011-09-21T10:53:01.000Z" />
        <EventRecordID>884373</EventRecordID>
        <Channel>Application</Channel>
        <Computer>APP-SVR.DOMAIN.local</Computer>
        <Security />
      </System>
      <EventData>
        <Data>No client computers have ever contacted the server.</Data>
      </EventData>
    </Event>
    ============== MSG 3 ==============
    Log Name:      Application
    Source:        Windows Server Update Services
    Date:          9/21/2011 1:53:01 PM
    Event ID:      12002
    Task Category: 9
    Level:         Error
    Keywords:      Classic
    User:          N/A
    Computer:      APP-SVR.DOMAIN.local
    Description:
    The Reporting Web Service is not working.
    Event Xml:
    <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
      <System>
        <Provider Name="Windows Server Update Services" />
        <EventID Qualifiers="0">12002</EventID>
        <Level>2</Level>
        <Task>9</Task>
        <Keywords>0x80000000000000</Keywords>
        <TimeCreated SystemTime="2011-09-21T10:53:01.000Z" />
        <EventRecordID>884374</EventRecordID>
        <Channel>Application</Channel>
        <Computer>APP-SVR.DOMAIN.local</Computer>
        <Security />
      </System>
      <EventData>
        <Data>The Reporting Web Service is not working.</Data>
      </EventData>
    </Event>
    ============== MSG 4 ==============
    Log Name:      Application
    Source:        Windows Server Update Services
    Date:          9/21/2011 1:53:01 PM
    Event ID:      12012
    Task Category: 9
    Level:         Error
    Keywords:      Classic
    User:          N/A
    Computer:      APP-SVR.DOMAIN.local
    Description:
    The API Remoting Web Service is not working.
    Event Xml:
    <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
      <System>
        <Provider Name="Windows Server Update Services" />
        <EventID Qualifiers="0">12012</EventID>
        <Level>2</Level>
        <Task>9</Task>
        <Keywords>0x80000000000000</Keywords>
        <TimeCreated SystemTime="2011-09-21T10:53:01.000Z" />
        <EventRecordID>884375</EventRecordID>
        <Channel>Application</Channel>
        <Computer>APP-SVR.DOMAIN.local</Computer>
        <Security />
      </System>
      <EventData>
        <Data>The API Remoting Web Service is not working.</Data>
      </EventData>
    </Event>
    ============== MSG 5 ==============
    Log Name:      Application
    Source:        Windows Server Update Services
    Date:          9/21/2011 1:53:01 PM
    Event ID:      12032
    Task Category: 9
    Level:         Error
    Keywords:      Classic
    User:          N/A
    Computer:      APP-SVR.DOMAIN.local
    Description:
    The Server Synchronization Web Service is not working.
    Event Xml:
    <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
      <System>
        <Provider Name="Windows Server Update Services" />
        <EventID Qualifiers="0">12032</EventID>
        <Level>2</Level>
        <Task>9</Task>
        <Keywords>0x80000000000000</Keywords>
        <TimeCreated SystemTime="2011-09-21T10:53:01.000Z" />
        <EventRecordID>884376</EventRecordID>
        <Channel>Application</Channel>
        <Computer>APP-SVR.DOMAIN.local</Computer>
        <Security />
      </System>
      <EventData>
        <Data>The Server Synchronization Web Service is not working.</Data>
      </EventData>
    </Event>
    ============== MSG 6 ==============
    Log Name:      Application
    Source:        Windows Server Update Services
    Date:          9/21/2011 1:53:01 PM
    Event ID:      12022
    Task Category: 9
    Level:         Error
    Keywords:      Classic
    User:          N/A
    Computer:      APP-SVR.DOMAIN.local
    Description:
    The Client Web Service is not working.
    Event Xml:
    <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
      <System>
        <Provider Name="Windows Server Update Services" />
        <EventID Qualifiers="0">12022</EventID>
        <Level>2</Level>
        <Task>9</Task>
        <Keywords>0x80000000000000</Keywords>
        <TimeCreated SystemTime="2011-09-21T10:53:01.000Z" />
        <EventRecordID>884377</EventRecordID>
        <Channel>Application</Channel>
        <Computer>APP-SVR.DOMAIN.local</Computer>
        <Security />
      </System>
      <EventData>
        <Data>The Client Web Service is not working.</Data>
      </EventData>
    </Event>
    ============== MSG 7 ==============
    Log Name:      Application
    Source:        Windows Server Update Services
    Date:          9/21/2011 1:53:01 PM
    Event ID:      12042
    Task Category: 9
    Level:         Error
    Keywords:      Classic
    User:          N/A
    Computer:      APP-SVR.DOMAIN.local
    Description:
    The SimpleAuth Web Service is not working.
    Event Xml:
    <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
      <System>
        <Provider Name="Windows Server Update Services" />
        <EventID Qualifiers="0">12042</EventID>
        <Level>2</Level>
        <Task>9</Task>
        <Keywords>0x80000000000000</Keywords>
        <TimeCreated SystemTime="2011-09-21T10:53:01.000Z" />
        <EventRecordID>884378</EventRecordID>
        <Channel>Application</Channel>
        <Computer>APP-SVR.DOMAIN.local</Computer>
        <Security />
      </System>
      <EventData>
        <Data>The SimpleAuth Web Service is not working.</Data>
      </EventData>
    </Event>
    ============== MSG 8 ==============
    Log Name:      Application
    Source:        Windows Server Update Services
    Date:          9/21/2011 1:53:01 PM
    Event ID:      12052
    Task Category: 9
    Level:         Error
    Keywords:      Classic
    User:          N/A
    Computer:      APP-SVR.DOMAIN.local
    Description:
    The DSS Authentication Web Service is not working.
    Event Xml:
    <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
      <System>
        <Provider Name="Windows Server Update Services" />
        <EventID Qualifiers="0">12052</EventID>
        <Level>2</Level>
        <Task>9</Task>
        <Keywords>0x80000000000000</Keywords>
        <TimeCreated SystemTime="2011-09-21T10:53:01.000Z" />
        <EventRecordID>884379</EventRecordID>
        <Channel>Application</Channel>
        <Computer>APP-SVR.DOAMIN.local</Computer>
        <Security />
      </System>
      <EventData>
        <Data>The DSS Authentication Web Service is not working.</Data>
      </EventData>
    </Event>
    ============== MSG 9 ==============
    Log Name:      Application
    Source:        ASP.NET 2.0.50727.0
    Date:          9/21/2011 1:53:09 PM
    Event ID:      1314
    Task Category: Web Event
    Level:         Information
    Keywords:      Classic
    User:          N/A
    Computer:      APP-SVR.DOMAIN.local
    Description:
    Event code: 4010
    Event message: An unhandled security exception has occurred.
    Event time: 9/21/2011 1:53:09 PM
    Event time (UTC): 9/21/2011 10:53:09 AM
    Event ID: 11b96ca285fa46d2a05d38e2e9b168af
    Event sequence: 1
    Event occurrence: 1
    Event detail code: 0
    Application information:
        Application domain: /LM/W3SVC/715372307/ROOT/ApiRemoting30-7-129610759889193820
        Trust level: High
        Application Virtual Path: /ApiRemoting30
        Application Path: C:\Program Files\Update Services\WebServices\ApiRemoting30\
        Machine name: APP-SVR
    Process information:
        Process ID: 8332
        Process name: w3wp.exe
        Account name: NT AUTHORITY\NETWORK SERVICE
    Request information:
        Request URL:
    http://app-svr:8530/ApiRemoting30/WebService.asmx
        Request path: /ApiRemoting30/WebService.asmx
        User host address: 192.168.5.22
        User: 
        Is authenticated: False
        Authentication Type: 
        Thread account name: NT AUTHORITY\NETWORK SERVICE
    Custom event details:
    Event Xml:
    <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
      <System>
        <Provider Name="ASP.NET 2.0.50727.0" />
        <EventID Qualifiers="16384">1314</EventID>
        <Level>4</Level>
        <Task>3</Task>
        <Keywords>0x80000000000000</Keywords>
        <TimeCreated SystemTime="2011-09-21T10:53:09.000Z" />
        <EventRecordID>884380</EventRecordID>
        <Channel>Application</Channel>
        <Computer>APP-SVR.DOMAIN.local</Computer>
        <Security />
      </System>
      <EventData>
        <Data>4010</Data>
        <Data>An unhandled security exception has occurred.</Data>
        <Data>9/21/2011 1:53:09 PM</Data>
        <Data>9/21/2011 10:53:09 AM</Data>
        <Data>11b96ca285fa46d2a05d38e2e9b168af</Data>
        <Data>1</Data>
        <Data>1</Data>
        <Data>0</Data>
        <Data>/LM/W3SVC/715372307/ROOT/ApiRemoting30-7-129610759889193820</Data>
        <Data>High</Data>
        <Data>/ApiRemoting30</Data>
        <Data>C:\Program Files\Update Services\WebServices\ApiRemoting30\</Data>
        <Data>APP-SVR</Data>
        <Data>
        </Data>
        <Data>8332</Data>
        <Data>w3wp.exe</Data>
        <Data>NT AUTHORITY\NETWORK SERVICE</Data>
        <Data>http://app-svr:8530/ApiRemoting30/WebService.asmx</Data>
        <Data>/ApiRemoting30/WebService.asmx</Data>
        <Data>192.168.5.22</Data>
        <Data>
        </Data>
        <Data>False</Data>
        <Data>
        </Data>
        <Data>NT AUTHORITY\NETWORK SERVICE</Data>
      </EventData>
    </Event>
    Saleh Ramadan

    So, in reality, this issue has nothing at all to do with "it was working; now it is not", because you've destroyed all of the evidence that would exist in a "was working; now is not" scenario. What we really have here is a NEW installation that has failed.
    So, from the perspective of a NEW installation that is not working...
    Are there any other roles, features, services, or applications installed on this server?
    Did you install the Web Server Role exactly as described in the documentation?
    Did you install the WSUS Role exactly as described in the documentation?
    Were there any other roles, features, services, or applications installed onto this server
    after your original (working) installation of WSUS?
    Lawrence Garvin, M.S., MCITP:EA, MCDBA, MCSA
    Principal/CTO, Onsite Technology Solutions, Houston, Texas
    Microsoft MVP - Software Distribution (2005-2011)
    My MVP Profile: http://mvp.support.microsoft.com/profile/Lawrence.Garvin
    My Blog: http://onsitechsolutions.spaces.live.com
    Oh, well, I have red and followed the documentation exactly step-by-step on the technet library, and I can guarantee you nothing went wrong because this is not my first installation for it
    When I told you about the old damaged installation and the new installation which is also failed and showed me the same symptoms as the old one, I was sure that nothing wrong with the WSUS itself, but rather it is something wrong with the environment
    Answering to your above questions, the answer for all is that: that server is only used for WSUS, nothing more
    Anyway, I have managed to restore the service thanks to your previous reply where you point to the CONFIG folder inside the NET framework folder, I checked the files in there, some were changed to the date I think has stopped the service, so I repaired the
    NET framework 2, and restarted
    It is working fine now and syncing with the update server
    Saleh Ramadan

  • SWA: Web Services call with attachment using 10.1.3 preview?

    Has anyone managed to figure out how to invoke a web service with an attachment (using SWA, SOAP with Attachments) with the new 10.1.3 preview release?
    Or are there any samples/documents that can point me in the right direction on how to do this?
    Thanks!
    ....Andrzej

    Finally got 10.1.3 installed, and sure enough, there is an example for the use of SWA (SOAP with Attachments), both as client and as server.
    But the notes say it won't run with Oracle Lite DB. Makes me wonder why?
    Kinda sucks, since that is what we're using for our proof of concept. <sigh>

Maybe you are looking for

  • Experience with thunderbolt to firewire adaptor - meeting expectations?

    Hello All, This question goes primarily to both professional and home recording artists who have so patiently waited for the "once-mythical /now available on the online store" thunderbolt to firewire adaptor. Most of us new MBPR users are waiting for

  • My Trial Illustrator icon disappears after completing installation download

    I am not a tech person, so please bear with me and thanks for any help. I have a MAC OS X version 10.4.ll Processor is 800 MHz Power PCG4. My Memory is 1GB SDRAM. When I go online to download Illustrator CS4, this is what happens. An icon appears on

  • Pdf in ibook gets directed to a website

    hi, i am trying to get back to the lib to see the rest of my ebook. With 1 tap i should see the 'lib' button at the top left corner to return back to the main lib. But instead of that it got directed to a website. How can i work around it? please fur

  • Can we override the functionality of F4 key?

    I want to override the functionality of F4 key. How will i do this?

  • Turning off the keyboard illumination

    Is there any way to turn off the illumination of the keys with one key press? On my old MBP, There was an additional function key that acted like a mute button. It's annoying to have to hit the dimmer or brighter key 5 or 6 times to get it to where I