Click here to Skip to main content
15,916,463 members
Home / Discussions / C#
   

C#

 
GeneralRe: Single instance forms in an MDI app Pin
martin_hughes8-Sep-07 14:18
martin_hughes8-Sep-07 14:18 
GeneralRe: Single instance forms in an MDI app Pin
Ed.Poore9-Sep-07 0:19
Ed.Poore9-Sep-07 0:19 
GeneralRe: Single instance forms in an MDI app Pin
martin_hughes9-Sep-07 7:36
martin_hughes9-Sep-07 7:36 
GeneralRe: Single instance forms in an MDI app Pin
Ed.Poore9-Sep-07 9:12
Ed.Poore9-Sep-07 9:12 
GeneralRe: Single instance forms in an MDI app Pin
Ed.Poore9-Sep-07 13:39
Ed.Poore9-Sep-07 13:39 
QuestionNeed an Algorithm like 'Word Wrap' in notepad. Pin
hdv2128-Sep-07 6:54
hdv2128-Sep-07 6:54 
AnswerRe: Need an Algorithm like 'Word Wrap' in notepad. Pin
Giorgi Dalakishvili8-Sep-07 7:26
mentorGiorgi Dalakishvili8-Sep-07 7:26 
QuestionConsuming Java Web Service using C# Pin
arctix8-Sep-07 4:48
arctix8-Sep-07 4:48 
Hi there,

I'm trying to solve a little problem. I created a simple web service in Java that sends a file as a byte array to the client. This array is sended as a MTOM attachment. Now, I'm trying to make a C# client application like this:

using System; <br />
using System.Collections.Generic; <br />
using System.ComponentModel; <br />
using System.Data; <br />
using System.Drawing; <br />
using System.Text; <br />
using System.Windows.Forms; <br />
<br />
namespace ImgClient <br />
{ <br />
      public partial class Form1 : Form <br />
{ <br />
      public Form1() <br />
      {  <br />
           InitializeComponent(); <br />
      } <br />
<br />
       private void button1_Click(object sender, EventArgs e) <br />
       { <br />
             ImageService.ImageServiceService service = new ImageService.ImageServiceService(); <br />
             byte[] data = service.getJavaImage(); <br />
             MessageBox.Show(data.Length.ToString()); <br />
       } <br />
}  <br />
}


but when I click on the button I'll receive an InvalidOperationException with this message:

Client found response content type of 'multipart/related;type="application/xop+xml";boundary="uuid:44b8d14c-dcbb-4024-996d-078c5985a152";start-info="text/xml", but expected "text/xml"... on line :
byte[] data = service.getJavaImage(); <br />



I made also a Java client application like this and it worked. So web service realy works. I also downloaded WSE 3.0 and set messaging->client mode to "on". But it didn't help.

Has anybody ever solved a problem like this? Or could anybody help with this?
thx in advance.
AnswerRe: Consuming Java Web Service using C# Pin
Guffa8-Sep-07 4:58
Guffa8-Sep-07 4:58 
QuestionRe: Consuming Java Web Service using C# [modified] Pin
arctix9-Sep-07 2:57
arctix9-Sep-07 2:57 
QuestionGenerics Problem Question Pin
PaulPrice8-Sep-07 4:44
PaulPrice8-Sep-07 4:44 
AnswerRe: Generics Problem Question Pin
Giorgi Dalakishvili8-Sep-07 4:49
mentorGiorgi Dalakishvili8-Sep-07 4:49 
GeneralRe: Generics Problem Question Pin
PaulPrice8-Sep-07 4:58
PaulPrice8-Sep-07 4:58 
GeneralRe: Generics Problem Question Pin
Giorgi Dalakishvili8-Sep-07 5:05
mentorGiorgi Dalakishvili8-Sep-07 5:05 
GeneralRe: Generics Problem Question Pin
PaulPrice8-Sep-07 5:11
PaulPrice8-Sep-07 5:11 
GeneralRe: Generics Problem Question Pin
Giorgi Dalakishvili8-Sep-07 5:18
mentorGiorgi Dalakishvili8-Sep-07 5:18 
QuestionAntivirus question Pin
sajid.salim.khan8-Sep-07 4:20
sajid.salim.khan8-Sep-07 4:20 
AnswerRe: Antivirus question Pin
Paul Conrad8-Sep-07 4:26
professionalPaul Conrad8-Sep-07 4:26 
QuestionDataGrid control WinFroms Pin
somagunasekaran8-Sep-07 4:19
somagunasekaran8-Sep-07 4:19 
AnswerRe: DataGrid control WinFroms Pin
Paul Conrad8-Sep-07 4:27
professionalPaul Conrad8-Sep-07 4:27 
QuestionRythm game Pin
pokabot8-Sep-07 3:08
pokabot8-Sep-07 3:08 
AnswerRe: Rythm game Pin
Guffa8-Sep-07 3:56
Guffa8-Sep-07 3:56 
GeneralRe: Rythm game Pin
pokabot8-Sep-07 4:35
pokabot8-Sep-07 4:35 
QuestionArray Pin
edwinlazer8-Sep-07 2:35
edwinlazer8-Sep-07 2:35 
AnswerRe: Array Pin
Guffa8-Sep-07 2:46
Guffa8-Sep-07 2:46 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.