powered by simpleCommunicator - 2.0.49     © 2025 Programmizd 02
Форумы / WCF, Web Services, Remoting [игнор отключен] [закрыт для гостей] / jax-ws and WCF
1 сообщений из 1, страница 1 из 1
jax-ws and WCF
    #36958725
Anykey Skovorodkin
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Гость
Всем привет

подобная тема уже подымалась на форуме, но там нету ответа на мой вопрос

подскажите, как организовать доступ из WCf клиента (Windows Mobile 6.0) к jax-ws сервису?

что я делаю

у меня есть веб сервис:

Код: plaintext
1.
2.
3.
4.
5.
6.
@WebService
@SOAPBinding(style = Style.RPC)
public interface HelloWordService
{
    @WebMethod
    public String getHelloWordText();
}

я реализовываю этот интерфейс:

Код: plaintext
1.
2.
3.
4.
5.
6.
7.
@WebService(endpointInterface="webservicetesting.HelloWordService")
public class HelloWordServiceImpl  implements HelloWordService
{
    public String getHelloWordText()
    {
        return "Yep, hello word";
    }
}

и создаю Endpoint:

Код: plaintext
1.
2.
String url = " http://127.0.0.1:8080/example"; 
Endpoint endpoint = Endpoint.create(new HelloWordServiceImpl());
endpoint.publish(url);

теперь иду в приложение WindowsMobile

сосзадю webreference (указываю url к службе http://my_ip:8080/example?wsdl) тут все ок, инициализирую объект

Код: plaintext
1.
2.
3.
HelloWordServiceImplService serv = new HelloWordServiceImplService();
serv.SoapVersion = System.Web.Services.Protocols.SoapProtocolVersion.Soap11;
String helloWord = serv.getHelloWordText();

вывалевается исключение, текст не мгу сказать, что-то с ресурсами

вот стек
Код: plaintext
1.
2.
3.
4.
5.
6.
at System.Net.HttpWebRequest.finishGetResponse()
at System.Net.HttpWebRequest.GetResponse()
at System.Web.Services.Protocols.WebClientProtocol.GetWebResponse()
at System.Web.Services.Protocols.HttpWebClientProtocol.GetWebResponse()
at System.Web.Services.Protocols.SoapHttpClientProtocol.doInvoke()
at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke()
at 

вот что пишет в аутпут

Код: plaintext
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
A first chance exception of type 'System.IO.IOException' occurred in mscorlib.dll
A first chance exception of type 'System.UriFormatException' occurred in System.dll
The thread 0x166efde2 has exited with code 0 (0x0).
The thread 0x56bfaee6 has exited with code 0 (0x0).
The thread 0x56bfaee6 has exited with code 0 (0x0).
A first chance exception of type 'System.Net.Sockets.SocketException' occurred in System.dll
A first chance exception of type 'System.Net.Sockets.SocketException' occurred in System.dll
The thread 0x166efde2 has exited with code 0 (0x0).
A first chance exception of type 'System.Net.WebException' occurred in System.dll
A first chance exception of type 'System.Net.WebException' occurred in System.Web.Services.dll


как решить эту проблемку?
...
Рейтинг: 0 / 0
1 сообщений из 1, страница 1 из 1
Форумы / WCF, Web Services, Remoting [игнор отключен] [закрыт для гостей] / jax-ws and WCF
Целевая тема:
Создать новую тему:
Автор:
Закрыть
Цитировать
Найденые пользователи ...
Разблокировать пользователей ...
Читали форум (0):
Пользователи онлайн (0):
x
x
Закрыть


Просмотр
0 / 0
Close
Debug Console [Select Text]