Re: JAVA works C# not !!!!!!!

Tech-Archive recommends: Fix windows errors by optimizing your registry



jpuopolo:
sorry for my lack of information...
where I should check permissions?
The server is the same nothing changed, I have no server codes, it is
executable.
Let me to explain to you more detailed...
I have xxx.wsdl, in which described in addition to getFiles and setFiles a
lot of methods, all of them is also
works on JAVA.
I have added this wsdl to my project as WebReference
Write an interface to get the SAOP interface.
Calls getFiles
Object[] getFiles(String aHomeDirectory, String aHomeOffset, String
aFileTypes);

returns the for example list of xml file if aFileTypes specified "xml".

works perfect!!!

But when I trying to call setFiles

bool setFiles(String aHomeDirectory, String aHomeOffset, Object[] files);

it throws the exception.

I don't know where I need to check permissions and if it is for write
permission why throw this kind of exception?


"jpuopolo" <jpuopolo@xxxxxxxxxxx> wrote in message
news:u6LaVF4zHHA.2312@xxxxxxxxxxxxxxxxxxxxxxx
Hovhannes:

1. Check your permissions. Depending on how you have them set up, you may
have read access and not write access.

2. Check your server. Many times (like in Java) there are read-only and
write-only streams. You may have access to a read (input) stream and need
to access the associated write (output) stream.

Of course C# works. That's a silly statement. It is just not exactly
mimicking what you saw in Java.

John


"Hovhannes Asatryan" <asa@xxxxxxxxx> wrote in message
news:uQ1hw13zHHA.464@xxxxxxxxxxxxxxxxxxxxxxx
Hello guys,
I'm newbie in .NET.

I have agent server works with SOAP protocol.

Added web service which have getFiles and setFiles methods.

SoapServer soapServer =
(SoapServer)Activator.GetObject(typeof(SoapServer),
http://localhost:port/Server);
SoapServer is the interface with methodts to be called.

When I called soapServer.getFiles("$FRTL_XMLHOME", "etc", "xml");
it works OK, but when I tried to call setFiles it throws exception

"Unable to write data to the transport connection: An established
connection
was aborted by the software in your host machine"

By the way with the same agent perfectly works java code no exceptions no
errors, the difference... client changed from java to .Net,

Language is C#.

Please help me with this problem.









.



Relevant Pages

  • Re: Monitoring, RWW and Backup Log all stopped working
    ... What permissions do you have on the following directory? ... Check to see that the Local Service and Network Service ... >>> Last week, after installing an antivirus upgrade, my server went a little>> berserk. ... An unhandled exception occurred during the execution of the>> current web request. ...
    (microsoft.public.windows.server.sbs)
  • Re: C#.NET app to run on Win 2003 from another Win2003 on the local net?
    ... Here is the exception dump: ... Policy Exception: Required permissions cannot be acquired. ... Win2003 (file server) doesn't even have the framework installed at all. ...
    (microsoft.public.dotnet.security)
  • Re: BufferedReader.readLine() hangs
    ... experience with Java, and I inherited the code that originally called ... I changed my test code to eliminate calls to ready, ... public static boolean getRowthrows Exception ... it only occurs with the server VM, so far as I can tell. ...
    (comp.lang.java.help)
  • Re: RMI & connection refused
    ... java -Djava.security.policy=policy RMIServer localhost 1099 & ... the client machine, telnet to port 1099 on the server machine. ... server thread; nested exception is: ...
    (comp.lang.java.programmer)
  • RMI tutorial - got "acceenied" exception
    ... I got the exception below when trying the client with commandline ... java -classpath ".;compute.jar;%CLASSPATH%" ... which is the codebase used by the server. ... ComputePi exception: error unmarshalling return; ...
    (comp.lang.java.programmer)