Dynamic proxy problems

Hi,
I'm working on making my own dynamicproxy client. I simply copied
and renamed the old dynamicproxy to HW5dynamicproxy and then change
the service endpoint in the build.properties file and removed the ws
method call temporarly from HelloClient.java. I can now build the
client with "ant build" and I recieve no complaints.
However when I go to execute the beast with "ant run" I get a java
NoClassDefError for dynamicproxy.HW5IF. The error is somewhere in
the "getPort" method because when I comment it out everything
works. Obviously HW5IF is not being generated at runtime.
However, the end-point, service name, uri, and portname all match
the WSDL of the webservice. Below is my code & WSDL. Any advice is
more than welcome.
-Steve
package dynamicproxy;
import java.net.URL;
import javax.xml.rpc.Service;
import javax.xml.rpc.JAXRPCException;
import javax.xml.namespace.QName;
import javax.xml.rpc.ServiceFactory;
import dynamicproxy.HW5IF;
public class HelloClient {
public static void main(String[] args) {
try {
String UrlString = args[0] + "?WSDL";
String nameSpaceUri = "urn:Foo";
String serviceName = "MyHW5Service";
String portName = "HW5IFPort";
System.out.println("UrlString = " + UrlString);
URL helloWsdlUrl = new URL(UrlString);
ServiceFactory serviceFactory =
ServiceFactory.newInstance();
Service helloService = serviceFactory.createService
(helloWsdlUrl,
new QName(nameSpaceUri, serviceName));
System.out.println("Get's Here!");
dynamicproxy.HW5IF myProxy =
(dynamicproxy.HW5IF)
helloService.getPort(
new QName(nameSpaceUri, portName),
dynamicproxy.HW5IF.class);
//System.out.println(myProxy.doIt_1(new Value(25)));
} catch (Exception ex) {
ex.printStackTrace();
<?xml version="1.0" encoding="UTF-8" ?>
- <definitions xmlns="http://schemas.xmlsoap.org/wsdl/"
xmlns:tns="urn:Foo" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
name="MyHW5Service" targetNamespace="urn:Foo">
- <types>
- <schema xmlns="http://www.w3.org/2001/XMLSchema" xmlns:soap11-
enc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
targetNamespace="urn:Foo">
<import namespace="http://schemas.xmlsoap.org/soap/encoding/" />
- <complexType name="Value">
- <sequence>
<element name="v" type="int" />
</sequence>
</complexType>
- <complexType name="ArrayOfstring">
- <complexContent>
- <restriction base="soap11-enc:Array">
<attribute ref="soap11-enc:arrayType" wsdl:arrayType="string[]" />
</restriction>
</complexContent>
</complexType>
</schema>
</types>
- <message name="HW5IF_doIt_1">
<part name="Value_1" type="tns:Value" />
</message>
- <message name="HW5IF_doIt_1Response">
<part name="result" type="xsd:boolean" />
</message>
- <message name="HW5IF_doIt_2">
<part name="String_1" type="xsd:string" />
</message>
- <message name="HW5IF_doIt_2Response">
<part name="result" type="tns:ArrayOfstring" />
</message>
- <portType name="HW5IF">
- <operation name="doIt_1" parameterOrder="Value_1">
<input message="tns:HW5IF_doIt_1" />
<output message="tns:HW5IF_doIt_1Response" />
</operation>
- <operation name="doIt_2" parameterOrder="String_1">
<input message="tns:HW5IF_doIt_2" />
<output message="tns:HW5IF_doIt_2Response" />
</operation>
</portType>
- <binding name="HW5IFBinding" type="tns:HW5IF">
- <operation name="doIt_1">
- <input>
<soap:body
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
use="encoded" namespace="urn:Foo" />
</input>
- <output>
<soap:body
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
use="encoded" namespace="urn:Foo" />
</output>
<soap:operation soapAction="" />
</operation>
- <operation name="doIt_2">
- <input>
<soap:body
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
use="encoded" namespace="urn:Foo" />
</input>
- <output>
<soap:body
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
use="encoded" namespace="urn:Foo" />
</output>
<soap:operation soapAction="" />
</operation>
<soap:binding transport="http://schemas.xmlsoap.org/soap/http"
style="rpc" />
</binding>
- <service name="MyHW5Service">
- <port name="HW5IFPort" binding="tns:HW5IFBinding">
<soap:address xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
location="http://localhost:8080/HW5/HW5" />
</port>
</service>
</definitions>

I'm using the ant run/build scripts that came with the tutorial, so ant should be running wscompile for me (I think).
I'm using the jwsdp-1.2 with the jws 1.2 tutorial.
Here are the exact steps I follow:
1) make a copy of jwstutorial12/examples/jaxrpc/dynamicproxy called HW5dynamicproxy.
2) change the endpoint.address in the build.properties file to http://localhost:8080/HW5/HW5
     (I've tested this endpoint and it works so my webservice is definitely there).
3)change the wsdl location in config-wsdl.xml to http://localhost:8080/HW5/HW5
4)go to src/HelloClient.java and change all references of "dynamicproxy.HelloIF" to "dynamicproxy.HW5IF"
     (This is my service interface.)
5)in the same file change serviceName to "MyHW5Service"
6)and change portName to "HW5IFPort"
7)comment out the System.out.println(..) temporarily because my ws methods are different.
8) execute "ant build" - nothing unusual.
9)execute "ant run" :
Buildfile: build.xml
run-client:
[java] UrlString = http://localhost:8080/HW5/HW5?WSDL
[java] java.lang.NoClassDefFoundError: dynamicproxy.HW5IF
[java]      at dynamicproxy.HelloClient.class$(Unknown Source)
[java]      at dynamicproxy.HelloClient.main(Unknown Source)
[java] Exception in thread "main"
run:
BUILD SUCCESSFUL
Total time: 3 seconds
Heres a printout of my webservice endpoint info:
Web Services
Port Name      Status      Information      
HW5     ACTIVE      Address:     http://localhost:8080/HW5/HW5     
          WSDL:     <http://localhost:8080/HW5/HW5?WSDL>     
          Port QName:     {urn:Foo}HW5IFPort     
          Remote interface:     HW5.HW5IF     
          Implementation class:     HW5.HW5Impl     
          Model:     <http://localhost:8080/HW5/HW5?model>     

Similar Messages

  • Jax-ws: dynamic proxy-suppress weblogic's default ws-policy handling

    hi all,
    i am writing my own jax-ws client (dynamic proxy) to call a web service, secured by usernametoken profile.
    the wsdl of the web service do include the ws-policy information.
    sample client side code:
    URL url = new URL("path_to_wsdl_file");
    QName serviceQname = new QName("http://model/", "CalculationService");
    Service service = Service.create(url, serviceQname);
    //add resolver and jax-ws handler to add username token SOAPElement fragment to the SOAP message.
    the above code runs fine in J2SE 6.0 environment (without any weblogic-specific library).
    but when i run the above code in a servlet (running in weblogic), the above code fails with the following error:
    Exception in thread "main" javax.xml.ws.soap.SOAPFaultException: Unable to add security token for identity, token uri =http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#UsernameToken
    at com.sun.xml.ws.fault.SOAP11Fault.getProtocolException(SOAP11Fault.java:196)
    at com.sun.xml.ws.fault.SOAPFaultBuilder.createException(SOAPFaultBuilder.java:122)
    at com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:119)
    at com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:89)
    at com.sun.xml.ws.client.sei.SEIStub.invoke(SEIStub.java:118)
    at $Proxy23.add(Unknown Source)
    at client.ServiceLocator.main(ServiceLocator.java:32)
    it seems that the weblogic server will try to handle the ws-policy element (according to those in the wsdl), even though
    i have already added the username-token security header by my own code.
    As i don't add some weblogic-specific code (e.g. weblogic.wsee.security.unt.ClientUNTCredentialProvider), the web service call fails.
    is it possible to disable/suppress such behavior (weblogic runtime handle the ws-policy element) per web service call???
    (i don't want a server scope solution, as there may be other web service client running on the same weblogic server that rely on such behavior).
    i don't want to use weblogic's API (e.g. ClientUNTCredentialProvider) as i want my web service client be portable (username token is easy to be handled by my own code)
    thank you.

    Hi René ,
    i just use plain HTTP, not HTTPS.
    seems don't involve any certificate, am i right?
    in J2SE environment, i can run the webservice client without problem.
    but once i run the client in weblogic, the problem mentioned occurred.
    if i manually delete the ws-policy related tag in the wsdl file (i download it to local filesystem for testing), the client can run in weblogic too.
    so, think there is some setting in weblogic that try to handle the ws-policy by its so-called 'credential provider'(e.g. ClientUNTCredentialProvider ?)
    thank you.

  • Dynamic proxy, several instances, same name, diff ids?

    I'm using a dynamic proxy with a simple invocation handler. Using the proxy for several instances of the target object should yield multiple instances of the proxy. In the debugger, each proxy instance is named $proxy0 with different ids. Can someone please elaborate on this? Specifically, the Proxy instance is created using the target object. Thus, how can each proxy instance have the same name, when different target objects (of the same type though) are used to construct the Proxy object? Is the Proxy instance the same regardless of the target object?
    I : interface
    T: target class
    pseudo thing:
    <code>
    T t1, t2, t3 ... new ...
    I i1 = (I) Proxy.newInst...(..., ..., t1)
    I i2 = (I) Proxy.newInst...(..., ..., t2)
    I i3 = (I) Proxy.newInst...(..., ..., t3)
    Each i has name $proxy0 with different id. For instance: i1-> $proxy0 id=68, i2 ->$proxy0 id= 32, etc.
    </code>
    Insight is appreciated!

    is it the same proxy that is instantiated three times (obviously)?It is the same proxy class that is instantiated three times. Obviously. Because that is the only meaning for 'instantiate' in Java.
    But how can that be when the target object for each Proxy instance is different?Because they are three different instances of the same class, each with a different target object.
    What's the problem here?

  • Dynamic proxy invokes basic auth web service

    My dynamic proxy client works fine with any web service except the basic auth secured one.
    I know how to use stub client to work around this issue. But I haven't found a way to get around when dynamic proxy clients are used.
    Any idea is appricated. Thanks

    Paula-
    Given that you can work around this issue with the stub client,
    you should be able to work around the issue in the dynamic proxy client
    in the same way-
    I am interested that you say workaround the issue with the stub client.
    Is there a problem that you have noted?
    If you can let me know how you worked this issue with the stub,
    and what problems you have specifically had with the dynamic proxy client
    I will look at the issue to see if it a bug.
    Please let me know what environment you are working in, the version of jaxrpc 1.x,
    what container, jdk or jre and a sample client program that would help me understand
    the problem.
    Thanks,
    Kathy

  • JAX-RPC Dynamic Proxy Client Question

    I have a very simple web service successfully deployed using Tomcat 5 and Apache Axis. It simply takes a string and returns a String. Regardless, it's working.
    Now I'm wanting to create a JAX-RPC dynamic proxy client as described on the following page:
    http://java.sun.com/webservices/docs/1.3/tutorial/doc/JAXRPC5.html
    There are numerous other articles out there describing the same method.
    My problem is that I'm getting a ServiceException on the following line every time I try to run my client:
    ServiceFactory factory = ServiceFactory.newInstance();
    Would anyone have any ideas why this might be or what I might be missing? All the articles make it seem like this is just a trivial line and never mention much about it.
    Any help would be appreciated. Thanks.

    Hello,
    You are getting a service Exception on ServiceFactory.newInstance() method?
    Actually, I have never seen this problem before. Is it possible that there are
    classpath issues? That is, are you using just the jars from the jwsdp?
    Regards,
    Kathy

  • No SOAPAction in dynamic proxy client

    I am trying to consume a .NET Web service from a J2EE client. I am using a dynamic proxy client from http://java.sun.com/webservices/docs/1.3/tutorial/doc/JAXRPC5.html#wp79973
    However, I am have a problem with the SOAPAction HTTP header. .NET requires this header element to be set but the proxy sends an empty SOAPAction header. What is the solution to this problem?

    message.getHeaders().addHeader("SoapAction","http://some.action.here");
    this piece of code is not working. This what i'm using.
    my .net service is running at ""http://192.168.4.214/dmwebservice/service1.asmx";" and my method name is "disconnect_cabinet"
    mesg.getMimeHeaders().addHeader("POST" , " /dmwebservice/service1.asmx HTTP/1.1");
    mesg.getMimeHeaders().addHeader("HOST" , " http://192.168.4.214");
    mesg.getMimeHeaders().addHeader("SOAPAction", " http://tempuri.org/disconnect_cabinet");
    the request & response is:
    [java] **** request ****
    [java] <?xml version="1.0" encoding="utf-8"?>
    [java] <SOAP-ENV:Envelope soap:encodingStyle="http://schemas.xmlsoap.org/so
    ap/encoding" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xs
    d="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema
    -instance"><SOAP-ENV:Header><SOAPAction xmlns="http://192.168.4.214/dmwebservice
    /service1.asmx/disconnect_cabinet"/></SOAP-ENV:Header><SOAP-ENV:Body><disconnect
    _cabinet xmlns="http://tempuri.org/"><credentials>123456</credentials></disconne
    ct_cabinet></SOAP-ENV:Body></SOAP-ENV:Envelope>
    [java] **** response ****
    [java] <?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="htt
    p://schemas.xmlsoap.org/soap/envelope/"><soap:Header><wsu:Timestamp xmlns:wsu="h
    ttp://schemas.xmlsoap.org/ws/2002/07/utility"><wsu:Created>2004-06-28T05:00:50Z<
    /wsu:Created><wsu:Expires>2004-06-28T05:05:50Z</wsu:Expires></wsu:Timestamp></so
    ap:Header><soap:Body><soap:Fault><faultcode>soap:Client</faultcode><faultstring>
    System.Web.Services.Protocols.SoapHeaderException: The message is not a valid XM
    L message ---> System.Xml.XmlException: 'soap' is an undeclared namespace. Li
    ne 2, position 20.
    [java] at System.Xml.XmlNSAttributeTokenInfo.FixNames()
    [java] at System.Xml.XmlTextReader.ParseElement()
    [java] at System.Xml.XmlTextReader.Read()
    [java] at Microsoft.Web.Services.XmlSkipDTDReader.Read()
    [java] at System.Xml.XmlLoader.LoadDocSequence(XmlDocument parentDoc)
    [java] at System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader, B
    oolean preserveWhitespace)
    [java] at System.Xml.XmlDocument.Load(XmlReader reader)
    [java] at Microsoft.Web.Services.SoapEnvelope.Load(Stream stream)
    [java] at Microsoft.Web.Services.WebServicesExtension.BeforeDeserializeS
    erver(SoapMessage message)
    what does this means and how can i fix? "The message is not a valid XML message ---> System.Xml.XmlException: 'soap' is an undeclared namespace. Line 2, position 20."
    please let me know.
    subhani.

  • Dynamic Proxy and OutOfMemoryError

    I ran into this problem before when working with Proxied objects.
    I am integrating iBatis into my framework and using Dynamic Proxies to allow a developer to pass in a DAO interface and the Dynamic Proxy will retrieve the correct iBatis SQL Map and run it according to the DAO interface method. Some of these DAO methods take parameters that are lists with 100,000s of records. When I run my batch process using Dynamic Proxies, I get OutOfMemoryError in WebLogic. When I remove the Dynamic Proxy and create a simple implementation for my DAO that I use instead of Proxying it, I get no error and my process runs fine.
    Any thoughts? Does sending huge amounts of data through a Proxy or doing quite a bit of activity inside a Proxied object cause OutOfMemoryErrors?
    Thanks,
    -jay blanton

    Check you don't have an infinite loop or recursion which is wrapping Proxies in Proxies in Proxies...

  • Dynamic Proxy API does not support WSRM.

    Hi ,
    I am recieving "Dynamic Proxy API does not support WSRM. See operation Outbound_Service_Interface" when i am testing the scenario in WSNavigator where in i am using WS adapter at the sender side.
    Can anyone tell  what might be the problem.
    Thanks & Regards,
    Hamsa Shree

    Hello Hamsa,
    This was known error still SDN buddies are looking for research:
    May these links will help:
    http://help.sap.com/saphelp_nwpi71/helpdata/en/46/741a3dfcfa0eede10000000a155369/content.htm
    You can try with this blog also:
    /people/michael.hill/blog/2007/12/13/service-implementation-in-java
    Even previous threads are shown the proofs as still looking for clues:
    web service scenario with PI 7.1 as mediator does not work
    error with WS navigator , 'Dynamic Proxy API does not support WSRM'

  • Async Dynamic Proxy Patented!

    Hi,
    I needed to make a call to send an email asynchronous, to remove it from the critical path. This is so that when the user hits a 'submit' button for an application on a web page, the server does not take a long time to respond, when it is busy sending the email, which can take a few seconds sometimes.
    Easy to do, but then I thought, why don't I write a dynamic proxy that makes any method call asynchronous and add that to my library of useful stuff. Googled "java dynamic proxy asynchronous method call", and found that IBM have patented it:
    http://www.google.com/patents/US7519977
    For real? Ok, I know there are even worse patents than that.
    Anyone have an idea of how different my implementation of this would need to be to avoid being covered by the the patent?

    Paula-
    Given that you can work around this issue with the stub client,
    you should be able to work around the issue in the dynamic proxy client
    in the same way-
    I am interested that you say workaround the issue with the stub client.
    Is there a problem that you have noted?
    If you can let me know how you worked this issue with the stub,
    and what problems you have specifically had with the dynamic proxy client
    I will look at the issue to see if it a bug.
    Please let me know what environment you are working in, the version of jaxrpc 1.x,
    what container, jdk or jre and a sample client program that would help me understand
    the problem.
    Thanks,
    Kathy

  • Dynamic Proxy - RAD

    Hello All,
    I'm a newbie to Web Services...I was trying to create a client using dynamic proxy in Rational Application Developer ...can anyone help me with a nice example or a tutorial
    Help is greatly appreciated
    Thanks.

    Paula-
    Given that you can work around this issue with the stub client,
    you should be able to work around the issue in the dynamic proxy client
    in the same way-
    I am interested that you say workaround the issue with the stub client.
    Is there a problem that you have noted?
    If you can let me know how you worked this issue with the stub,
    and what problems you have specifically had with the dynamic proxy client
    I will look at the issue to see if it a bug.
    Please let me know what environment you are working in, the version of jaxrpc 1.x,
    what container, jdk or jre and a sample client program that would help me understand
    the problem.
    Thanks,
    Kathy

  • Dynamic proxy class

    Hello every body,
    i have my own package .inside my package i use invoke method form java.lang.Reflect . This invoke method call method from out side package at run time .However, becuase i try to call method from outside package and not public i get the follwoing Exception :
    IllegalAccessException
    at run time
    my question :
    can i use dynamic proxy class in the reflect package to solve my problem ???
    Actually , when i back to proxy class i found that it also depend on invoke method in the invokation handler
    so pleeeease i need support
    Nada

    Why are you calling a non-public method in unrelated class in another package? The maintainer of that package has no responsibility to ensure that the signature or behavior of the method does not change. A later change in that package could break your code.
    The access rules in Java are set up to prevent exactly this sort of thing, so it's not a problem to be overcome. It's not a bug... it's a feature!

  • OEL 6.1 YUM proxy problem

    Hi all,
    I have some issue with OEL 6.1 YUM proxy.
    *[root@rac1 tmp]# uname -a*
    Linux rac1.oracle.cloud 2.6.32-100.34.1.el6uek.x86_64 #1 SMP Wed May 25 17:46:45 EDT 2011 x86_64 x86_64 x86_64 GNU/Linux
    *[root@rac1 tmp]# rpm -qa | grep yum*
    yum-metadata-parser-1.1.2-16.el6.x86_64
    yum-3.2.29-17.0.1.el6.noarch
    yum-rhn-plugin-0.9.1-26.0.2.el6.noarch
    yum-utils-1.1.30-6.el6.noarch
    PackageKit-yum-plugin-0.5.8-19.0.1.el6.x86_64
    PackageKit-yum-0.5.8-19.0.1.el6.x86_64
    *[root@rac1 tmp]# cat /etc/yum.repos.d/public-yum-ol6.repo*
    [ol6_ga_base]
    name=Oracle Linux 6 GA - $basearch - base
    baseurl=http://public-yum.oracle.com/repo/OracleLinux/OL6/0/base/$basearch/
    gpgkey=http://public-yum.oracle.com/RPM-GPG-KEY-oracle-ol6
    gpgcheck=0
    enabled=1
    [ol6_u1_base]
    name=Oracle Linux 6 U1 - $basearch - base
    baseurl=http://public-yum.oracle.com/repo/OracleLinux/OL6/1/base/$basearch/
    gpgkey=http://public-yum.oracle.com/RPM-GPG-KEY-oracle-ol6
    gpgcheck=0
    enabled=1
    *[root@rac1 tmp]# cat /etc/yum.conf*
    [main]
    cachedir=/var/cache/yum/$basearch/$releasever
    debuglevel=2
    sslverify=false
    logfile=/var/log/yum.log
    pkgpolicy=newest
    distroverpkg=redhat-release
    tolerant=1
    exactarch=1
    # The proxy server - proxy server:port number
    proxy=http://xxx.xxx.xxx.xxx:3128
    # The account details for yum connections
    proxy_username=xxx
    proxy_password=@$xxx
    *[root@rac1 tmp]# yum update*
    http://public-yum.oracle.com/repo/OracleLinux/OL6/0/base/x86_64/repodata/repomd.xml: [Errno 14] PYCURL ERROR 5 - "Couldn't resolve proxy '[email protected]'"
    Trying other mirror.
    Error: Cannot retrieve repository metadata (repomd.xml) for repository: ol6_ga_base. Please verify its path and try again
    [root@rac1 tmp]#
    In OEL5.7 this works fine without any problem. I think this related to OEL6.1, maybe YUM does not understand proxy, my password for proxy starting with @$ but I changed my password and
    output is changed to
    *[root@rac1 tmp]# yum update*
    http://public-yum.oracle.com/repo/OracleLinux/OL6/0/base/x86_64/repodata/repomd.xml: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 407"
    Trying other mirror.
    Error: Cannot retrieve repository metadata (repomd.xml) for repository: ol6_ga_base. Please verify its path and try again
    [root@rac1 tmp]#
    If anyone can help me please reply.
    ./thanks

    Avi Miller wrote:
    __OUTSIDER___ wrote:
    No this will not help. Problem is not related to password I changed it and response is It might help, it's worth trying. Try this:
    # export http_proxy='http://proxy.domain.com:3128'
    # wget --proxy-user="xxx" --proxy-password="xxx" http://public-yum.oracle.com/repo/OracleLinux/OL6/1/base/x86_64/repodata/repomd.xmlIf that works, it is a yum problem. If it doesn't work, it's a proxy problem.Yes it works , interesting that user and password parameters not working with double quotes only with single.
    I also checked this with YUM but YUM is having problem with passwords that starting
    with "@" symbol. I try to set
    export http_proxy="http://username:\@$passwd@IP:PORT"
    for ignoring "@" symbol but no sucess. With OEL5 this is not a problem. In /etc.yum.conf same username and same password.
    Perhaps I should change my password :)
    and last one thing in my home network I have OEL6.1 ( where fortunately with no proxy :) ) I try update linux with "yum update" command
    and it returns that no packages to update , can you tell me why because there are new kernel avalable and I can download and install this new kernel with command "yum install kernel".

  • XI ABAP Proxy problem

    Hi all,
    I am trying to develope an itegration scenario as follows:
    ABAP System ---> XI -
    Java System
    For communication between ABAP System and XI there is a Proxy, however it is not working out.
    The message from ABAP system does not go to XI.
    I got the following message in SXMB_MONI of ABAP Sytem:
    SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="">
    <SAP:Category>XIProtocol</SAP:Category>
    <SAP:Code area="PARSER">ITEM_MISSING</SAP:Code>
    <SAP:P1>Envelope</SAP:P1>
    <SAP:P2 />
    <SAP:P3 />
    <SAP:P4 />
    <SAP:AdditionalText />
    <SAP:ApplicationFaultMessage namespace="" />
    <SAP:Stack>XML element Envelope missing in SOAP message header (SAP XI Extension)</SAP:Stack>
    <SAP:Retry>M</SAP:Retry>
    </SAP:Error>
    Someone has solved a problem like that?
    Regards
    Fabio

    Hi Fabio,
            I would request to to check for two things,
    1. Whats ur was version? Is it 640? else can you try to change the Commumnication channel in xi adapter to message protocal as xi2.0 ,, i think you used it as xi3.0
    2. retest it.
    3. If it still gets the same error refer the thread,
    XI Proxy Problems
    All the best,
    Anirban.

  • Dynamic proxy not working

    Folks,
    I deployed a EJB Webservice(Document Literal) in Sun App Server. I am able to access the method through Static Stub but Dynamic proxy says the below error:
    port: {http://com.venkat.webservice/AllInOne/targ}AllInOneIntfPort does not contain operation: justConcat
         at com.sun.xml.rpc.client.dii.ConfiguredCall.configureCall(ConfiguredCall.java:98)
         at com.sun.xml.rpc.client.dii.ConfiguredCall.configureCall(ConfiguredCall.java:69)
         at com.sun.xml.rpc.client.dii.ConfiguredCall.setMethodName(ConfiguredCall.java:50)
         at com.sun.xml.rpc.client.dii.DynamicProxyBuilder.buildDynamicProxyFor(DynamicProxyBuilder.java:66)
         at com.sun.xml.rpc.client.dii.ConfiguredService.getPort(ConfiguredService.java:250)
         at wsclient.DynProxy.main(DynProxy.java:50)
    The Code i used to access is as below:
    String UrlString = "http://venkat:8080/AllInOneServiceBean" + "?WSDL";
                String nameSpaceUri = "http://com.venkat.webservice/AllInOne/targ";
                String serviceName = "AllInOneService";
                String portName = "AllInOneIntfPort";
      Service helloService =
                    serviceFactory.createService(helloWsdlUrl,
                        new QName(nameSpaceUri, serviceName));
    AllInOneIntf myProxy = (AllInOneIntf) helloService.getPort(new QName(
                        nameSpaceUri,
                        portName), AllInOneIntf.class);          
                System.out.println(myProxy.justConcat("aasds","as"));The WSDL File is:
    <?xml version="1.0" encoding="UTF-8"?><definitions xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:tns="http://com.venkat.webservice/AllInOne/targ" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:ns2="http://com.venkat.webservice/AllInOne/type" name="AllInOneService" targetNamespace="http://com.venkat.webservice/AllInOne/targ">
    <types>
    <schema xmlns="http://www.w3.org/2001/XMLSchema" xmlns:tns="http://com.venkat.webservice/AllInOne/type" xmlns:soap11-enc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" targetNamespace="http://com.venkat.webservice/AllInOne/type">
    <complexType name="justConcat">
    <sequence>
    <element name="String_1" type="string" nillable="true"/>
    <element name="String_2" type="string" nillable="true"/></sequence></complexType>
    <complexType name="justConcatResponse">
    <sequence>
    <element name="result" type="string" nillable="true"/></sequence></complexType>
    <complexType name="takeCustomObject">
    <sequence>
    <element name="ValueObject_1" type="tns:ValueObject" nillable="true"/></sequence></complexType>
    <complexType name="ValueObject">
    <sequence>
    <element name="comp" type="string" nillable="true"/>
    <element name="name" type="string" nillable="true"/></sequence></complexType>
    <complexType name="takeCustomObjectResponse">
    <sequence>
    <element name="result" type="string" nillable="true"/></sequence></complexType>
    <element name="justConcat" type="tns:justConcat"/>
    <element name="justConcatResponse" type="tns:justConcatResponse"/>
    <element name="takeCustomObject" type="tns:takeCustomObject"/>
    <element name="takeCustomObjectResponse" type="tns:takeCustomObjectResponse"/></schema></types>
    <message name="AllInOneIntf_justConcat">
    <part name="parameters" element="ns2:justConcat"/></message>
    <message name="AllInOneIntf_justConcatResponse">
    <part name="result" element="ns2:justConcatResponse"/></message>
    <message name="AllInOneIntf_takeCustomObject">
    <part name="parameters" element="ns2:takeCustomObject"/></message>
    <message name="AllInOneIntf_takeCustomObjectResponse">
    <part name="result" element="ns2:takeCustomObjectResponse"/></message>
    <portType name="AllInOneIntf">
    <operation name="justConcat">
    <input message="tns:AllInOneIntf_justConcat"/>
    <output message="tns:AllInOneIntf_justConcatResponse"/></operation>
    <operation name="takeCustomObject">
    <input message="tns:AllInOneIntf_takeCustomObject"/>
    <output message="tns:AllInOneIntf_takeCustomObjectResponse"/></operation></portType>
    <binding name="AllInOneIntfBinding" type="tns:AllInOneIntf">
    <soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document"/>
    <operation name="justConcat">
    <soap:operation soapAction=""/>
    <input>
    <soap:body use="literal"/></input>
    <output>
    <soap:body use="literal"/></output></operation>
    <operation name="takeCustomObject">
    <soap:operation soapAction=""/>
    <input>
    <soap:body use="literal"/></input>
    <output>
    <soap:body use="literal"/></output></operation></binding>
    <service name="AllInOneService">
    <port name="AllInOneIntfPort" binding="tns:AllInOneIntfBinding">
    <soap:address location="http://venkat:8080/AllInOneServiceBean" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"/></port></service></definitions>
    Please let me what mistake i am doing if any? or is this a bug
    Thanks
    Venkat

    If you are using document/literal, which this WSDL is, you would be much better off using Metro (JAX-WS) as it has a much better dynamic interface in the Dispatch APIs. Metro: http://metro.dev.java.net, JAX-WS: http://jax-ws.dev.java.net.

  • Proxy Problem The proxy server is refusing connections

    I run Windows XP. I did have a Cybot backdoor Activity attack intercepted by Norton Internet Security and I used the Norton NPE to remove it from the computer. I do not know if this caused the proxy problem or not.
    There is no proxy problem connecting to the internet through Internet Explorer just through Mozilla Firefox.
    When Mozilla Firefox tries to connect to the internet I get the following message:
    Firefox is configured to use a proxy server that is refusing connections.
    Check the proxy settings to make sure that they are correct.
    Contact your network administrator to make sure the proxy server is
    working.
    In Mozilla I click Tools, options, advanced, network, settings. Under settings Proxy is set on manual, it says that there is no proxy for the figures typed in.
    So I click auto detect proxy and I then can connect to internet through Mozilla, however when I log out of the internet, the same proxy server issue is recreated.
    What should the Proxy setting be?

    You can find the connection settings in Tools > Options > Advanced : Network : Connection
    If you do not need to use a proxy to connect to internet then select "No Proxy"
    See "Firefox connection settings":
    * https://support.mozilla.com/kb/Firefox+cannot+load+websites+but+other+programs+can
    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    *Don't make any changes on the Safe mode start window.
    *https://support.mozilla.com/kb/Safe+Mode
    *https://support.mozilla.com/kb/Troubleshooting+extensions+and+themes
    See also:
    *http://kb.mozillazine.org/Preferences_not_saved

Maybe you are looking for