SOAP interoperability problem with .Net consuming Axis ???

by martin 7. November 2008 23:21

It seems that the auto generated proxy classes for SOAP (Webreferences) seem to require the root element of the response SOAP body to be fully qualified by namespace by default.  One trick to overcome this that worked for me was to use wsdl.exe to create editable classes rather than using webreference.  Then I was able to remove the ResponseNameSpace attribute from the System.Web.Services.Protocols.SoapDocumentMethodAttribute attribute annotation.  This seem to allow the temporary infrastructure xml deserializer class to work correctly by making the call to XmlReader.IsStartElement return true for Axis generated SOAP responses that do not specify a namespace at all.

wsdl.exe /language:CS /out:CustomWebServiceProxy.cs  AxisServiceWsdl.wsdl 
( /namespace:MyAppNameSpace ) 

You can also remove the System.Diagnostics.DebuggerStepThroughAttribute attribute annotations so that you can step into (F-11 key) the runtime generated proxy code to see and debug the serializer and deserializer in action.  This comes in very useful when you are receiving a valid soap response over the network but your return object is null upon returning back from the webservice call.  I had to do this when all I was getting was null and had no error messages to grasp at.


Currently rated 1.5 by 65 people

  • Currently 1.476923/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags: , ,

C# | Java

Local IP Address bug in some JVMs

by martin 21. October 2008 23:47

This guy from Spi Dynamics (now HP) told me how you can get the local IP address in some browser / JVM combinations a few months back.;

Click here to see if you are at risk.

Inside an applet, you seem to always be able to get the internal ip address using code like :

String strLocalIPAddress = (new Socket(strWebHost, intPort)).getLocalAddress().getHostAddress();

I haven't been able to get this work via javascript. Go to see Lars Kindermann's MyAddress applet to check if you are at risk:

I also ran across a cool DNS Pinning applet/service that did port scanning.

Now add in CIFS / SMB into your dns pinned applet and ? ?  

Currently rated 1.8 by 46 people

  • Currently 1.804348/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags: , , ,

Java | JavaScript


Please contact me if you have a great idea for a project and need technical expertise in designing, developing, or integrating a custom software solution.

Recent Comments

Comment RSS