.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
Sharad
Manish
Post New Web Links

Java to WCF - WSDL issues with Faults

Posted By:      Posted Date: November 02, 2010    Points: 0   Category :ASP.Net
 

Hi all,

 

When using SVCUTIL to generate the proxy classes, I get the following warning:

Warning: Fault named SystemException in operation deliverMessages cannot be imported. Unsupported WSDL, the fault message part must reference an element. This fault message does not reference an element. If you have edit access to the WSDL document, you can fix the problem by referencing a schema element using the 'element' attribute.

Here's a copy of my WSDL:

  <message name="DeliverMessagesException">
  <part xmlns:partns="java:com.customer.service.pes.ws.ivr.exception" type="partns:DeliverMessagesException" name="DeliverMessagesException">
  </part>
 </message>

I've changed type to "element" but then I get other errors in SVCUTIL.

I found this link detailing the issue: http://social.msdn.microsoft.com/Forums/en-US/wcf/thread/f07679f2-0466-41c8-ae7e-f5b354b6f169/

But I still have not been able to resolve the issue... so how do I fix this issue?




View Complete Post


More Related Resource Links

wcf-java interoperabillity issues?

  
Hi all, I have developed a wcf service with transport security. The certficate that is needed I created with certificates services from windows server 2008. I created two clients one wcf client and one jax-ws client. The wcf client is working smoothly but the other is throwing an error no subject alternative names present. I google it and as I can see certificate services of windows server 2008 have not this option from web enrollment site when they sign certs. I don't know if this is the right forum to post. Any help?? Thanks in advance

WCF MTOM Client calling Java Webservice - Issues with File attachment Content ID encoded in SOAP mes

  
Hello,I'm having difficulty calling a MTOM enabled Java based web service that accepts an file as input..NET appeats to be generating a SOAP message where the reference to the binary part of the message is an encoded url.For Example:  <inc:Include href="cid:http%3A%2F%2Ftempuri.org%2F1%2F634000265217257868" xmlns:inc="http://www.w3.org/2004/08/xop/include"/>In fact, the Content ID defined in the SOAP message, looks nothing like the actual Content ID of the actual message part.Content-ID: <http://tempuri.org/1/634000265217257868=2787915398744@soapui.org>The service is invoked and executed on the java webserver...but the data element appears to be null.I do not believe the java web server understands the reference in the SOAP message because it is encoded....Or...perhaps it's because the Content-ID attribute has extract stuff on it.I'm working with a custom MTOM encoder in WCF....is there a way to generate your own Content ID or tell .NET not to encode the url?My frustration with .NET has reached an all new level with this project...Any help would be greatly appreciated.Here the SOAP message that is being generated:<soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope" xmlns:ns="http://docs.oasis-open.org/ns/cmis/messaging/200901" xmlns:ns1="http://docs.oasis-open.org/ns/cmis/core/200901&q

performance issues with calling java webservices from WPF application?

  

I'm experiencing some major performance issues when calling a Java webservice from my WPF application. If I call the same webservice from a Java test application, I get a return in under 1 second. If I create a new .NET console application and make the same service call, I get a return in under 1 second as well:

class Program
 {
 public Program()
 {
 }

 static void Main(string[] args)
 {
  MyService svc = new MyService();
  for (int i = 0; i < 10; i++)
  {
  Console.WriteLine("calling echo()");
  DateTime startTime = DateTime.Now;
  string result = svc.echo("Test " + i);
  DateTime endTime = DateTime.Now;
  TimeSpan ts = endTime.Subtract(startTime);
  Console.WriteLine("Execution Time = " + ts.TotalSeconds + " seconds, result=" + result);
  }
  Console.ReadLine();
 }
 }

However, when I try to call this same service from a WPF application, my response times range from 6-8 seconds. I tried moving the webservice calls to a BGW thread without any luck. I'm running the sample WPF application on the same machine as the sample .NET console application so it's not a network-related issue. Can someone explain why the execution times of calling the Java webservice below is so much slower when done from within a WPF application?

public partial class MainWindow : Window
{
 private MyServi

Issues while consuming WCF WSDL from SOA BPEL

  

Hi

I have also posted in Oracle Forums. My SOA Version 11.1.1.3

I am having issues invoke target system WCF -Basic HTTP Binding WSDL, from SOA/BPEL. I see some interoperability issues with WSHTTP BInding WCF, but I am not sure about Basic HTTP Binding WSDL.

I get an java.lang.RuntimeException: java.lang.StackOverflowError Exception(see below ) when I load the BasicHTTPBinding WSDL URL into my Partner Link,so I tried importing  the WSDL file and  I get same  exception.

I even used HTTPBinding Adapter,  selected the  schemas and when I invoke I get Oracle Fabric Invocation Exception.Strangely, I can invoke from SOAP UI

 I see one of you were successful invoking WCF service from BPEL?? . I would appreciate if you could provide some inputs to trouble shoot this issue.

Exception:

java.lang.RuntimeException: java.lang.StackOverflowError
    at oracle.tip.tools.ide.pm.modules.sca.ide.JDevScaProcessListener.modelChanged(JDevScaProcessListener.java:78)
    at oracle.tip.tools.ide.common.bpelparser.implementations.xmlef.ProcessImpl.fireModelChanged(ProcessImpl.java:130)
    at oracle.tip.tools.ide.pm.bpelgraph.editors.partnerlink.PartnerLinkEditPage.firePartnerLinkCreated(PartnerLinkEditPage.java:1426)
    at oracle.tip.tools.id

C# reading Java/Php/SOAP service, WSDL generated file missing some namespace information

  
I'm trying to use a Web Service, which I believe is Java/php/SOAP, using C#.
I can connect and send fine, but the results, which are an array of information,
is null. The return is not instant, and I can get back errors.
I believe the problem is in the WSDL translation. The actual response coming back
does not line up with the WSDL generated code in reguards to namespaces. In
perticular, 'getCategoryTreeResponse' & 'getCategoryTreeResult' do not show up 
in the generated file.
I'm quite sure the WSDL file provided is poorly written but I have no control
over it. WSDL.exe only works when I pass a saved copy of the web service's
provided WSDL information due to the way it is called.
http://xxx.com/soap.php?target=categories&w

IE 8 Issues with Chinese/Japanese Characters

  

On my web application, I display information in different languages. Everything works fine in IE compatibility mode and FireFox but it shows boxes for chinese/japanese languages. I am pretty much having the same issue as described here

 

http://tuts9.com/questions/22344/japanese-characters-are-not-displaying-correctly-in-ie-8-not-sure-about-earlier-versions

Thanks for your help.


C# / Java webservice

  

I am writting a client applicatin that acesses a webservice written by another company.  I need to test against this webservice but since it is live I need another place to test with.  I don't have access to the code from the webservice but have added a reference to my project.  I would like to create a test platform using C# which will run on IIS and not Java.

I have created a basic webserive using both the NetBeans platform and the VS/C# platform.  The problem I am having is if I dynamically change the web address from one to the other my client application complains that the webservice is invalid.  I have verified all the calls are the same.

Are there any setting with VS/C# that allow me to configure it to behave more like the Java webservice?  I don't have the server support to host the Java application for full testing along with other problems using the Java version.

I have run both services in the "WCF Test Client" and can see where the WCF service uses the varibles for request and the Java uses body/request but can't get the WCF to follow that format.  I read somewhere about changing the OperationContract with SoapRpcMethod but then the mentod is not longer exposed. I also tried a Web Service in .NET 3.5 instead of a WCF server but that seems to be more trouble and does not

Concurrency: Tools And Techniques to Identify Concurrency Issues

  

Efficient parallel applications aren't born by merely running an old app on a parallel processor machine. Tuning needs to be done if you're to gain maximum benefit.

Rahul V. Patil and Boby George

MSDN Magazine June 2008


CLR Inside Out: Investigating Memory Issues

  

Memory issues can manifest in a wide variety of ways. This column shows you how to collect the data you need to determine what types of mem¬ory issues you are experiencing.

Claudio Caldato and Maoni Stephens

MSDN Magazine November 2006


Web Services: Increase Your App's Reach Using WSDL to Combine Multiple Web Services

  

The very tools that have helped drive the growing adoption of Web services, and the enabling abstractions that they provide, can often prevent developers from peeking behind the curtains at the XML standards that make up the Web services stack. This article will offer a solution that enables type sharing between proxies created for complementary Web services, while at the same time providing an opportunity to examine the Web Services Description Language (WSDL) and its interaction with the Web services tools you know and love.

Gerrard Lindsay

MSDN Magazine March 2005


{ End Bracket }: Microsoft Java Virtual Machine Update

  

In a settlement agreement reached in January 2001 to resolve a dispute over the Microsoft distribution of its Java implementation, Sun Microsystems and Microsoft agreed to limit the duration of the time Microsoft would use Sun's source code and compatibility test suites to support the Microsoft® Java Virtual Machine (MSJVM).

Brian Keller

MSDN Magazine October 2004


Stress Testing: Custom LoadGenerator Tool Identifies the Issues Your Application Faces Under Stress

  

It's easy to postpone stress testing when developing an application, and it's easy to forgo it altogether. Having an easy-to-use framework at your fingertips to conduct these tests can make the task far less painful. This article walks you through an application that eases the task of generating load for a variety of layers within an application.

Brian Otto

MSDN Magazine April 2004


Versioning Issues With Optional Arguments

  
One nice new feature introduced in C# 4 is support for named and optional arguments . While these two features are often discussed together, they really are orthogonal concepts. Let's look at a quick example of these two concepts at work. Suppose we have a class with one method having the following signature. // v1 public static void Redirect( string url, string protocol = "http" ); This hypothetical library contains a single method that takes in two parameters, a required string url and an optional string protocol . The following shows the six possible ways this method can be called. HttpHelpers.Redirect( "http://haacked.com/" ); HttpHelpers.Redirect(url: "http://haacked.com/" ); HttpHelpers.Redirect( "http...(read more)
Categories: 
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend