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

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

Invoking Java Axis Webservice Issue

Posted By:      Posted Date: October 19, 2010    Points: 0   Category :ASP.Net

Hi Experts,

Here's my problem:

I have an asp.net app that invokes a java/axis based webservice through a wsdl file provided by my customer.

But, as i had no access to this webservice at the dev time, i've created a fake .net based webservice, with the same methods, returning some valid data, so i'd be able to test the integration interface.

The problem is, when i add the service reference on my app, pointing to my fake webservice (.net), it's class has a certain name, and when i point it to my customer's wsdl file, it's class has a different name.

Generated class name when i add the service reference by:
    - .NET fake webservice = "TransferenciaEndpointSoapClient"
    - wsdl file of the java/axis webservice = "TransferenciaEndpointClient"

I want the class i've created in my fake webservice to keep the same name of the wsdl, when i add the service reference on my app.

I tried to add a "web reference" instead of a "service reference", but it did not work. I also tried to change the name of the class on the "Reference.cs" file, it works on my environment, but it doesn't when i put the generated bin on my customer's environment. I'd like to sol

View Complete Post

More Related Resource Links

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

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

Namespace Conflict while accessing webservice from java script






Hi All,

I am using Asp.Net with C# , I am trying to access web service from java script using below code


DCen.RC.RController.Update(_User, _UserId, _ContObjId, _IsUnrAllowed, _UserRatiowed, _Localed,  SucceededCallback, FailedCallback);<br/>

The above line is working fine in my local env. but when i am trying to deploy it on server it through exception and said "DCen not Defined "

Plese help me out


Thanks in advance

MOSS 2007 Rich Text Editor Java Issue


Hi I have strange problem with Sharepoint at the moment that when I try to edit an 'Content Editor Web Part' using the Rich Text Editor button all I get is an error icon at the bottom of the IE 8 Window and when I double click the icon/shield to see what the issue is I am greeted by

Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; InfoPath.2; .NET4.0C)
Timestamp: Mon, 27 Sep 2010 10:31:21 UTC

Message: Object doesn't support this property or method
Line: 7307
Char: 2
Code: 0
URI: https://s6fnet.s6f.org.uk/_layouts/1033/HtmlEditor.js

Has anyone came across this issue before?

The MOSS 2007 is fully updated and patched.

Trouble deserializing ArrayOfString from Apache Axis WebService



I'm trying to call a webservice hosted on Apache Axis. It's probably written in Java. (Speficially, it's a service from Cisco CallManager returning call detail files.)
The WSDL contains the following snippets:
schema targetNamespace="http://schemas.cisco.com/ast/soap/"

Invoking .Net WebService automatically using URL


Dear all,

I have created a WebService in C# which accept 2 parameters.

What I want is to call the invoke the webservice from either

1. An Oracle Form


2. by just clicking on a url and pass the parameters throu the URL

Is it possible?

If so, please help me.

Many Thnks


Java Script Cast Issue


when i Multiply 999999999999999999999.00*1 , then i get 100000000000000000000.00

and when i Multiply 999999999999999.00*1 then i get 999999999999999

Why it is happening

connecting sharepoint webservice in java

hi..  i m creating a blackberry application in which i have to connect a sharepoint webservice and retrive and post values from that..but that webservice is password protected.. it ask's username and password when i try to view the webservice itself..  is there any way to solve this authentication problem in java ?

SSRS Webservice issue on the hosting account


 I have couple of reports deployed on a hosting server. When I run my code to generate PDF files using these reports from my local machin it works fine. But when I run the same code on the hosting server I get the following error message. It seems that the service acocunt does not have enough permission in Temp ASP.NET folder on the hosting server. What can be done to resolve this issue?

Error Details:

Server Error in '/' Application. 
The request failed with HTTP status 401: Unauthorized. 
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 

Exception Details: System.Net.WebException: The request failed with HTTP status 401: Unauthorized.

Source Error: 

Line 264:        [return: System.Xml.Serialization.XmlElementAttribute("executionInfo")]
Line 265:        public ExecutionInfo LoadReport(string Report, string HistoryID) {
Line 266:            object[] results = this.Invoke("LoadReport", new object[] {
Line 267:                        Report,
Line 268:                        HistoryID});

Source File: c:\windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\3a1f18d1\6aa08967\App_WebReferences.hy

Problem Java call .NET webservice.


I created a very simple webservice (below)

namespace PmtCommu


    [WebService(Namespace = "http://tempuri.org/")]

    [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]


    // To allow this Web Service to be called from script, using ASP.NET AJAX, uncomment the following line. 

    // [System.Web.Script.Services.ScriptService]

    public class PmoWebService : System.Web.Services.WebService



        public string PmoSvc_Test(string strVal)


            string retVal = string.Format("You sent me {0}.", strVal);

            // my code logging the strVal.

            return retVal;


I tested with .NET client. NO problem.

BUT, my service need to be consumed by Java client. I have trouble passing the parameter in.

I can see the "You sent me ." in my log and as a return value.

Following is the Java Code:


Manually configure (custom) binding for Java-based webservice



this is a follow up to my question Error "An unsupported security policy assertion was detected" when processing a WSDL with Svcutil.exe.

It seems that I'll get no further feedback on this, so I'll go with the assumption that it's not possible to use Svcutil.exe to generate functional client code from the WSDLs of the there mentioned services.

The main problem seems to be the security policies which are completely ignored, so no meanigful binding gets generated.

Therefore I guess I've to manually set up a (custom) binding to produce requests the conform to what the services expecting.
Here's an example for a service requests, it uses an SCT (issued by the corresponding STS) for authentication:

<?xml version="1.0" encoding="UTF-8"

Does SQL Server 2005 support invoking secure (https) webservice as part of CLR proceduer/function ?


Does SQL Server 2005 support invoking secure (https) webservice as part of CLR proceduer/function ?

If yes, what exactly we need to do to make it working?

As I have a web service which is working fine for me if I'm calling it normally like "http://......" but same is generating error as below if I am calling it like "https:/..."

Error : The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel.   at System.Net.HttpWebRequest.GetResponse()


WCF webservice with callbacks to Java clients


I am new to WCF. I need to implement a WCF web service with callbacks/Events to clients.

How to implement this for a Java/Unix client? Is it supported?

Any sample code will be helpful.

Unable to consume a Java webservice from .Net client ( 2005 )



Am trying to consume a Java webservice deployed in Weblogic using Apache axis plugin. I am unable to add the Web reference from .Net client Below find the error thrown by .Net client

AXIS error

Sorry, something seems to have gone wrong... here are the details:

Fault - makeTypeElement() was told to create a type "{http://discovery.co.za/PolicyDetails/}>>>PolicyDetailsReply>PolicyResultsList>PolicyResults", with no containing element
AxisFault faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.generalException faultSubcode: faultString: makeTypeElement() was told to create a type "{http://discovery.co.za/PolicyDetails/}>>>PolicyDetailsReply>PolicyResultsList>PolicyResults", with no containing element faultActor: faultNode: faultDetail: {http://xml.apache.org/axis/}hostname:dhpxenvdi8
Error message from the Apache server :
2011/05/11 10:38:46 AM> <Error> <HTTP> <BEA-101362> <[weblogic.servlet.internal.WebAppServletContext@1404d1 - appName: 'PolicyDetailsWSServiceEAR', name: 'PolicyDetailsWSService', context-path: '/PolicyDetailsWSService', spec-version: '2.5'] could not deserialize the servlet-context scoped attribute with name: "AxisEngine"
java.io.NotSerializableException: org.apache.axis.configura

IsapiModule Error 500 Issue


I am about exhausted trying to figure out this error:

HTTP Error 500.0 - Internal Server Error

Description: The page cannot be displayed because an internal server error has occurred.

Error Code: 0x8007007b

Notification: ExecuteRequestHandler

Module: IsapiModule

Requested URL: http://localhost:80/ReportServer

Physical Path: c:\Program Files\Microsoft SQL Server\MSSQL.2\Reporting Services\ReportServer

When I enable Failed Request Tracing Rules and view the log output I am supposing that the actual problem is in the 2nd call where there are 2 backslashes before the actual filename in the specified path:


CALL_ISAPI_EXTENSION DllName="C:\Windows\Microsoft.NET\Framework\v2.0.50727\\aspnet_isapi.dll"


MVC2 issue - Stuck. Trying to create a cms with nested partials


I am currently trying to display multiple items on a single page. I am not sure as to how to tackle this. What I have is a database table that has all the page data in. I have this run as a PagesController and this works fine. However what I would like to do is, if say the Products page is selected via the menu, I want to pull back not only the Products page html but also get all the products, and even be able to pull them through via category. I was trying to use a partial view, but I can't get it to work. The same would be for other pages, having partial views to display the other content, ie if Gallery is selected, the page html for Gallery shows and it then can push to a partial view that pulls all the gallery images from the gallery db table and so on. 

Maybe I am tackling this the wrong way. I have the pages stored in the db to allow for a CMS system I have setup. Maybe I need to use models for all the other items(Products, Gallery, Videos and such) and use the partial for the page html?

Any help would be greatly appreciated as I am confused.

saving XML output from webservice


 I created a webservice that takes casenum as input and gives results as a dataset in an XML.

I could make a web client to display the resulting dataset in a grid view. Pls see my code copied below.

Now I want to create a console client that takes the casenum as input, to call the webservice and saves the resulting xml for further processing, but can't figure out how to just capture the xml to save. Here's the code for my web client. I would appreciate if you could help modify this tocapture the resulting xml to save file locally.

Thank You.

namespace ResultsWebServicesClient
    public partial class _Default : System.Web.UI.Page
        protected void Page_Load(object sender, EventArgs e)

        private void BindDataToGrid(string CaseNum)
            FG_Results results = new FG_Results();
            DataSet ds1 = new DataSet();
            ds1 = results.Get_FG_Results(CaseNum);
            GridView1.AutoGenerateColumns = true;
            GridView1.DataSource = ds1.Tables[0];

        protected void GetResults(object sender, EventArgs e)


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